DefaultApplicationLifecycle

play.api.inject.DefaultApplicationLifecycle

Default implementation of the application lifecycle.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override 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.

Attributes

Definition Classes
override def stop(): Future[_]

Call to shutdown the application.

Call to shutdown the application.

Attributes

Returns

A future that will be redeemed once all hooks have executed.

Definition Classes

Inherited methods

def addStopHook(hook: Callable[_ <: 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.

Attributes

Inherited from:
ApplicationLifecycle
def asJava: ApplicationLifecycle

Attributes

Returns

the Java version for this Application Lifecycle.

Inherited from:
ApplicationLifecycle