java.lang.Object
io.fluxzero.sdk.configuration.DefaultFluxzero
- All Implemented Interfaces:
Fluxzero,AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface io.fluxzero.sdk.Fluxzero
applicationInstance, instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.RegistrationbeforeShutdown(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(io.fluxzero.common.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxzero.sdk.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
Description copied from interface:FluxzeroHave Fluxzero use the given Clock when generating timestamps, e.g. when creating aMessage. -
clock
Description copied from interface:FluxzeroReturns the clock used by Fluxzero to generate timestamps. -
beforeShutdown
Description copied from interface:FluxzeroRegister a task to run before this Fluxzero instance is closed.- Specified by:
beforeShutdownin interfaceFluxzero
-
close
public void close(boolean silently) Description copied from interface:FluxzeroCloses this Fluxzero instance gracefully. If silently is true, shutdown is done without logging.
-