Interface FluxCapacitorBuilder
- All Known Implementing Classes:
DefaultFluxCapacitor.Builder
public interface FluxCapacitorBuilder
Builder for a Flux Capacitor client instance.
-
Method Summary
Modifier and TypeMethodDescriptionaddBatchInterceptor(BatchInterceptor interceptor, MessageType... forTypes) addConsumerConfiguration(ConsumerConfiguration consumerConfiguration, MessageType... messageTypes) addDispatchInterceptor(DispatchInterceptor interceptor, boolean highPriority, MessageType... forTypes) default FluxCapacitorBuilderaddDispatchInterceptor(DispatchInterceptor interceptor, MessageType... forTypes) addHandlerDecorator(HandlerDecorator decorator, boolean highPriority, MessageType... forTypes) default FluxCapacitorBuilderaddHandlerDecorator(HandlerDecorator decorator, MessageType... forTypes) default FluxCapacitorBuilderaddHandlerInterceptor(HandlerInterceptor interceptor, boolean highPriority, MessageType... forTypes) default FluxCapacitorBuilderaddHandlerInterceptor(HandlerInterceptor interceptor, MessageType... forTypes) addParameterResolver(ParameterResolver<? super DeserializingMessage> parameterResolver) default FluxCapacitorBuilderaddPropertySource(PropertySource propertySource) configureDefaultConsumer(MessageType messageType, UnaryOperator<ConsumerConfiguration> updateFunction) default FluxCapacitorBuilderforwardWebRequestsToLocalServer(int port) forwardWebRequestsToLocalServer(LocalServerConfig localServerConfig, UnaryOperator<ConsumerConfiguration> consumerConfigurator) makeApplicationInstance(boolean makeApplicationInstance) registerUserProvider(UserProvider userProvider) replaceCache(Cache cache) replaceCorrelationDataProvider(UnaryOperator<CorrelationDataProvider> correlationDataProvider) replaceDocumentSerializer(DocumentSerializer documentSerializer) replaceIdentityProvider(UnaryOperator<IdentityProvider> replaceFunction) replaceMessageRoutingInterceptor(DispatchInterceptor messageRoutingInterceptor) replacePropertySource(UnaryOperator<PropertySource> replacer) replaceRelationshipsCache(UnaryOperator<Cache> replaceFunction) replaceSerializer(Serializer serializer) Register a custom serializer.replaceSnapshotSerializer(Serializer serializer) replaceWebResponseMapper(WebResponseMapper webResponseMapper) withAggregateCache(Class<?> aggregateType, Cache cache) Configures a dedicated cache to use for aggregates of the given type.
-
Method Details
-
configureDefaultConsumer
FluxCapacitorBuilder configureDefaultConsumer(MessageType messageType, UnaryOperator<ConsumerConfiguration> updateFunction) -
addConsumerConfiguration
FluxCapacitorBuilder addConsumerConfiguration(ConsumerConfiguration consumerConfiguration, MessageType... messageTypes) -
addBatchInterceptor
-
addDispatchInterceptor
default FluxCapacitorBuilder addDispatchInterceptor(DispatchInterceptor interceptor, MessageType... forTypes) -
addDispatchInterceptor
FluxCapacitorBuilder addDispatchInterceptor(DispatchInterceptor interceptor, boolean highPriority, MessageType... forTypes) -
addHandlerInterceptor
default FluxCapacitorBuilder addHandlerInterceptor(HandlerInterceptor interceptor, MessageType... forTypes) -
addHandlerInterceptor
default FluxCapacitorBuilder addHandlerInterceptor(HandlerInterceptor interceptor, boolean highPriority, MessageType... forTypes) -
addHandlerDecorator
default FluxCapacitorBuilder addHandlerDecorator(HandlerDecorator decorator, MessageType... forTypes) -
addHandlerDecorator
FluxCapacitorBuilder addHandlerDecorator(HandlerDecorator decorator, boolean highPriority, MessageType... forTypes) -
replaceMessageRoutingInterceptor
FluxCapacitorBuilder replaceMessageRoutingInterceptor(DispatchInterceptor messageRoutingInterceptor) -
replaceCache
-
forwardWebRequestsToLocalServer
-
forwardWebRequestsToLocalServer
FluxCapacitorBuilder forwardWebRequestsToLocalServer(LocalServerConfig localServerConfig, UnaryOperator<ConsumerConfiguration> consumerConfigurator) -
replaceWebResponseMapper
-
withAggregateCache
Configures a dedicated cache to use for aggregates of the given type. If no dedicated cache is set aggregates will be stored in the default cache. -
replaceRelationshipsCache
-
replaceIdentityProvider
-
addParameterResolver
FluxCapacitorBuilder addParameterResolver(ParameterResolver<? super DeserializingMessage> parameterResolver) -
replaceSerializer
Register a custom serializer. This serializer will also be used for aggregate snapshots unless a custom snapshot serializer is registered usingreplaceSnapshotSerializer(Serializer). This serializer will also be used asDocumentSerializerif supported unless a custom document serializer is registered usingreplaceDocumentSerializer(DocumentSerializer). -
replaceCorrelationDataProvider
FluxCapacitorBuilder replaceCorrelationDataProvider(UnaryOperator<CorrelationDataProvider> correlationDataProvider) -
replaceSnapshotSerializer
-
replaceDocumentSerializer
-
registerUserProvider
-
addPropertySource
-
replacePropertySource
-
disableErrorReporting
FluxCapacitorBuilder disableErrorReporting() -
disableShutdownHook
FluxCapacitorBuilder disableShutdownHook() -
disableMessageCorrelation
FluxCapacitorBuilder disableMessageCorrelation() -
disablePayloadValidation
FluxCapacitorBuilder disablePayloadValidation() -
disableDataProtection
FluxCapacitorBuilder disableDataProtection() -
disableAutomaticAggregateCaching
FluxCapacitorBuilder disableAutomaticAggregateCaching() -
disableScheduledCommandHandler
FluxCapacitorBuilder disableScheduledCommandHandler() -
disableTrackingMetrics
FluxCapacitorBuilder disableTrackingMetrics() -
disableCacheEvictionMetrics
FluxCapacitorBuilder disableCacheEvictionMetrics() -
disableWebResponseCompression
FluxCapacitorBuilder disableWebResponseCompression() -
makeApplicationInstance
-
build
-