Class DefaultFluxzero
java.lang.Object
io.fluxzero.sdk.configuration.DefaultFluxzero
- All Implemented Interfaces:
Fluxzero, AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface Fluxzero
applicationInstance, instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbeforeShutdown(Runnable task) Register a task to run before this Fluxzero instance is closed.static DefaultFluxzero.Builderbuilder()clock()Returns the clock used by Fluxzero to generate timestamps.voidclose(boolean silently) Closes this Fluxzero 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.voidHave Fluxzero use the given Clock when generating timestamps, e.g. when creating aMessage.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Fluxzero
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
-
DefaultFluxzero
public DefaultFluxzero()
-
-
Method Details
-
builder
-
customGateway
Description copied from interface:FluxzeroReturns the gateway for given custom message topic.- Specified by:
customGatewayin interfaceFluxzero
-
tracking
Description copied from interface:FluxzeroReturns a client to assist with the tracking of a given message type. -
withClock
-
clock
-
beforeShutdown
Description copied from interface:FluxzeroRegister a task to run before this Fluxzero instance is closed.- Specified by:
beforeShutdownin interfaceFluxzero
-
close
-