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.Builder
builder()
clock()
Returns the clock used by Flux Capacitor to generate timestamps.void
close
(boolean silently) Closes this Flux Capacitor instance gracefully.customGateway
(String topic) Returns the gateway for given custom message topic.tracking
(MessageType messageType) Returns a client to assist with the tracking of a given message type.void
Have Flux Capacitor use the given Clock when generating timestamps, e.g. when creating aMessage
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.fluxcapacitor.javaclient.FluxCapacitor
aggregateRepository, apply, cache, client, close, commandGateway, configuration, correlationDataProvider, documentStore, errorGateway, eventGateway, eventStore, execute, identityProvider, keyValueStore, messageScheduler, metricsGateway, propertySource, queryGateway, registerHandlers, registerHandlers, resultGateway, serializer, snapshotStore, taskScheduler, userProvider, webRequestGateway
-
Constructor Details
-
DefaultFluxCapacitor
public DefaultFluxCapacitor()
-
-
Method Details
-
builder
-
customGateway
Description copied from interface:FluxCapacitor
Returns the gateway for given custom message topic.- Specified by:
customGateway
in interfaceFluxCapacitor
-
tracking
Description copied from interface:FluxCapacitor
Returns a client to assist with the tracking of a given message type.- Specified by:
tracking
in interfaceFluxCapacitor
-
withClock
Description copied from interface:FluxCapacitor
Have Flux Capacitor use the given Clock when generating timestamps, e.g. when creating aMessage
.- Specified by:
withClock
in interfaceFluxCapacitor
-
clock
Description copied from interface:FluxCapacitor
Returns the clock used by Flux Capacitor to generate timestamps.- Specified by:
clock
in interfaceFluxCapacitor
-
beforeShutdown
Description copied from interface:FluxCapacitor
Register a task to run before this Flux Capacitor instance is closed.- Specified by:
beforeShutdown
in interfaceFluxCapacitor
-
close
public void close(boolean silently) Description copied from interface:FluxCapacitor
Closes this Flux Capacitor instance gracefully. If silently is true, shutdown is done without logging.- Specified by:
close
in interfaceFluxCapacitor
-