Class DefaultFluxCapacitor
java.lang.Object
io.fluxcapacitor.javaclient.configuration.DefaultFluxCapacitor
- All Implemented Interfaces:
FluxCapacitor,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.FluxCapacitor
applicationInstance, instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeShutdown(Runnable task) Register a task to run before this Flux Capacitor instance is closed.static DefaultFluxCapacitor.Builderbuilder()clock()Returns the clock used by Flux Capacitor to generate timestamps.voidclose()Returns the factory used by Flux Capacitor to generate identifiers.tracking(MessageType messageType) Returns a client to assist with the tracking of a given message type.voidHave Flux Capacitor use the given Clock when generating timestamps, e.g.voidwithIdentityProvider(@NonNull IdentityProvider identityProvider) Have Flux Capacitor use the given IdentityProvider when generating ids, e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.FluxCapacitor
aggregateRepository, apply, cache, client, commandGateway, correlationDataProvider, documentStore, errorGateway, eventGateway, eventStore, execute, keyValueStore, metricsGateway, queryGateway, registerHandlers, registerHandlers, resultGateway, scheduler, serializer, userProvider, webRequestGateway
-
Constructor Details
-
DefaultFluxCapacitor
public DefaultFluxCapacitor()
-
-
Method Details
-
builder
-
tracking
Description copied from interface:FluxCapacitorReturns a client to assist with the tracking of a given message type.- Specified by:
trackingin interfaceFluxCapacitor
-
withClock
Description copied from interface:FluxCapacitorHave Flux Capacitor use the given Clock when generating timestamps, e.g. when creating aMessage.- Specified by:
withClockin interfaceFluxCapacitor
-
clock
Description copied from interface:FluxCapacitorReturns the clock used by Flux Capacitor to generate timestamps.- Specified by:
clockin interfaceFluxCapacitor
-
withIdentityProvider
Description copied from interface:FluxCapacitorHave Flux Capacitor use the given IdentityProvider when generating ids, e.g. when creating aMessage.- Specified by:
withIdentityProviderin interfaceFluxCapacitor
-
identityProvider
Description copied from interface:FluxCapacitorReturns the factory used by Flux Capacitor to generate identifiers.- Specified by:
identityProviderin interfaceFluxCapacitor
-
beforeShutdown
Description copied from interface:FluxCapacitorRegister a task to run before this Flux Capacitor instance is closed.- Specified by:
beforeShutdownin interfaceFluxCapacitor
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceFluxCapacitor
-