Interface ConnectorLifecycle
- All Known Implementing Classes:
AxonServerCommandBusConnector,AxonServerQueryBusConnector,MultiTenantAxonServerCommandBusConnector,MultiTenantAxonServerQueryBusConnector
public interface ConnectorLifecycle
Interface for managing the lifecycle of a connector.
- Since:
- 5.3.0
- Author:
- Jan Galinski
-
Method Summary
Modifier and TypeMethodDescriptionDisconnects the connector.Shuts down the connector gracefully.voidstart()Starts the connector.
-
Method Details
-
start
void start()Starts the connector. -
shutdownDispatching
CompletableFuture<Void> shutdownDispatching()Shuts down the connector gracefully.- Returns:
- a
CompletableFuturethat completes when the connector has been shutdown.
-
disconnect
CompletableFuture<Void> disconnect()Disconnects the connector.- Returns:
- a
CompletableFuturethat completes when the connector has been disconnected.
-