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.0
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescriptionrun(Configuration configuration) Run the start-up or shutdown process thisLifecycleHandlerrepresents.
-
Method Details
-
run
Run the start-up or shutdown process thisLifecycleHandlerrepresents. Depending on the implementation this might be asynchronous through the return value.- Parameters:
configuration- The configuration that provides access to the components in this application.- Returns:
- a
CompletableFutureof unknown type which enables chaining severalLifecycleHandlercalls.
-