Uses of Class
org.axonframework.messaging.queryhandling.QueryShutdownManager
Packages that use QueryShutdownManager
Package
Description
Package for query handling components in Axon Framework.
Part of the Axon Messaging module.
Part of the Axon Messaging module.
-
Uses of QueryShutdownManager in org.axonframework.extension.springboot.autoconfig
Method parameters in org.axonframework.extension.springboot.autoconfig with type arguments of type QueryShutdownManagerModifier and TypeMethodDescriptionorg.springframework.context.SmartLifecycleQueryShutdownAutoConfiguration.queryShutdownManagerLifecycle(List<QueryShutdownManager> managers) Creates aSmartLifecyclethat callsshutdown()on all registeredQueryShutdownManagerbeans during application shutdown. -
Uses of QueryShutdownManager in org.axonframework.messaging.queryhandling
Methods in org.axonframework.messaging.queryhandling that return QueryShutdownManagerModifier and TypeMethodDescriptionstatic QueryShutdownManagerQueryShutdownManager.closeImmediately()Creates aQueryShutdownManagerthat closes all active query streams immediately whenshutdown()is called.QueryShutdownManager.registerShutdown(LifecycleRegistry registry) Registersshutdown()as a shutdown handler on the givenregistryatPhase.OUTBOUND_QUERY_CONNECTORS, the phase at which outbound query connectors shut down.static QueryShutdownManagerQueryShutdownManager.withGracePeriod(Duration gracePeriod) Creates aQueryShutdownManagerthat waits up to the givengracePeriodfor active query streams to complete naturally before force-closing any remaining ones. -
Uses of QueryShutdownManager in org.axonframework.messaging.queryhandling.configuration
Methods in org.axonframework.messaging.queryhandling.configuration with parameters of type QueryShutdownManagerModifier and TypeMethodDescriptionQueryGatewayConfigurer.cancellingStreamingQueryOnShutdown(QueryShutdownManager shutdownManager) Configures all streaming queries dispatched through this gateway to be tracked by the givenshutdownManager, cancelling them according to that manager's policy when the application shuts down.QueryGatewayConfigurer.cancellingSubscriptionQueryOnShutdown(QueryShutdownManager shutdownManager) Configures all subscription queries dispatched through this gateway to be tracked by the givenshutdownManager, cancelling them according to that manager's policy when the application shuts down. -
Uses of QueryShutdownManager in org.axonframework.messaging.queryhandling.gateway
Methods in org.axonframework.messaging.queryhandling.gateway with parameters of type QueryShutdownManagerModifier and TypeMethodDescriptionstatic ShutdownTrackingQueryGatewayShutdownTrackingQueryGateway.build(QueryGateway delegate, @Nullable QueryShutdownManager subscriptionQueryShutdownManager, @Nullable QueryShutdownManager streamingQueryShutdownManager) Builds aShutdownTrackingQueryGateway, delegating to the givendelegatewhile using the givensubscriptionQueryShutdownManagerandstreamingQueryShutdownManagerto automatically shutdownsubscription-andstraeming queriesrespectively.