Package org.axonframework.lifecycle
Interface Lifecycle
- All Known Implementing Classes:
AxonServerCommandBus,AxonServerConnectionManager,AxonServerEventScheduler,AxonServerQueryBus,DbSchedulerDeadlineManager,DbSchedulerEventScheduler,DistributedCommandBus,EmbeddedEventStore,EventProcessorControlService,HeartbeatMonitor,JobRunrDeadlineManager,JobRunrEventScheduler,MessageHandlerRegistrar,PooledStreamingEventProcessor,QuartzDeadlineManager,QuartzEventScheduler,SimpleDeadlineManager,SimpleEventScheduler,SubscribingEventProcessor,TrackingEventProcessor,UpdateChecker
public interface Lifecycle
Interface for components that can be started and shut down as part of the Application lifecycle.
- Since:
- 4.6
- Author:
- Allard Buijze
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceFunctional interface for lifecycle activities that may run asynchronouslystatic interfaceInterface towards the registry that holds all lifecycle handlers for components. -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the activities to be executed in the various phases of an application's lifecycle.
-
Method Details
-
registerLifecycleHandlers
Registers the activities to be executed in the various phases of an application's lifecycle. This could either be at startup, shutdown, or both.- Parameters:
lifecycle- the lifecycle instance to register the handlers with- See Also:
-