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) addDispatchInterceptor(DispatchInterceptor interceptor, boolean highPriority, MessageType... forTypes) default FluxCapacitorBuilderaddDispatchInterceptor(DispatchInterceptor interceptor, MessageType... forTypes) addHandlerInterceptor(HandlerInterceptor interceptor, boolean highPriority, MessageType... forTypes) default FluxCapacitorBuilderaddHandlerInterceptor(HandlerInterceptor interceptor, MessageType... forTypes) addParameterResolver(ParameterResolver<DeserializingMessage> parameterResolver) configureDefaultConsumer(MessageType messageType, UnaryOperator<ConsumerConfiguration> updateFunction) default FluxCapacitorBuilderforwardWebRequestsToLocalServer(int port) forwardWebRequestsToLocalServer(LocalServerConfig localServerConfig, UnaryOperator<ConsumerConfiguration> consumerConfigurator) makeApplicationInstance(boolean makeApplicationInstance) registerUserSupplier(UserProvider userProvider) replaceCache(Cache cache) replaceCorrelationDataProvider(CorrelationDataProvider correlationDataProvider) replaceDocumentSerializer(DocumentSerializer documentSerializer) replaceMessageRoutingInterceptor(DispatchInterceptor messageRoutingInterceptor) 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
-
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
FluxCapacitorBuilder addHandlerInterceptor(HandlerInterceptor interceptor, 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
-
addParameterResolver
FluxCapacitorBuilder addParameterResolver(ParameterResolver<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(CorrelationDataProvider correlationDataProvider) -
replaceSnapshotSerializer
-
replaceDocumentSerializer
-
registerUserSupplier
-
disableErrorReporting
FluxCapacitorBuilder disableErrorReporting() -
disableShutdownHook
FluxCapacitorBuilder disableShutdownHook() -
disableMessageCorrelation
FluxCapacitorBuilder disableMessageCorrelation() -
disablePayloadValidation
FluxCapacitorBuilder disablePayloadValidation() -
disableDataProtection
FluxCapacitorBuilder disableDataProtection() -
disableAutomaticAggregateCaching
FluxCapacitorBuilder disableAutomaticAggregateCaching() -
enableTrackingMetrics
FluxCapacitorBuilder enableTrackingMetrics() -
makeApplicationInstance
-
build
-