class DefaultApplicationLifecycle extends ApplicationLifecycle
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultApplicationLifecycle
- ApplicationLifecycle
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DefaultApplicationLifecycle()
- Annotations
- @Inject()
Value Members
- def addStopHook(hook: () => Future[_]): Unit
Add a stop hook to be called when the application stops.
Add a stop hook to be called when the application stops.
The stop hook should redeem the returned future when it is finished shutting down. It is acceptable to stop immediately and return a successful future.
- Definition Classes
- → ApplicationLifecycle
- def addStopHook(hook: [_ <: CompletionStage[_]]): Unit
Add a stop hook to be called when the application stops.
Add a stop hook to be called when the application stops.
The stop hook should redeem the returned future when it is finished shutting down. It is acceptable to stop immediately and return a successful future.
- Definition Classes
- ApplicationLifecycle
- def asJava: inject.ApplicationLifecycle
- returns
the Java version for this Application Lifecycle.
- Definition Classes
- ApplicationLifecycle
- def stop(): Future[_]
Call to shutdown the application.
Call to shutdown the application.
- returns
A future that will be redeemed once all hooks have executed.
- Definition Classes
- → ApplicationLifecycle
Default implementation of the application lifecycle.