Package org.axonframework.config
Interface LifecycleHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface towards a lifecycle handler used during start up or shutdown of an application.
- Since:
- 4.3
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionrun()Run the start up or shutdown process thisLifecycleHandlerrepresents.
-
Method Details
-
run
CompletableFuture<?> run()Run the start up or shutdown process thisLifecycleHandlerrepresents. Depending on the implementation this might be asynchronous through the return value.- Returns:
- a
CompletableFutureof unknown type which enables chaining severalLifecycleHandlercalls
-