Package io.inversion
Interface Engine.EngineListener
-
- All Superinterfaces:
Api.ApiListener
- Enclosing class:
- Engine
public static interface Engine.EngineListener extends Api.ApiListener
ReceivesEngineandApilifecycle, per request and per error callback notifications.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonShutdown(Engine engine)Notified when the Engine is shutting down and has stopped receiving requests allowing listeners to perform any resource cleanup.default voidonStartup(Engine engine)Notified when the Engine is starting prior to accepting any requests which allows listeners to perform additional configuration.-
Methods inherited from interface io.inversion.Api.ApiListener
onAfterError, onAfterRequest, onBeforeFinally, onShutdown, onStartup
-
-
-
-
Method Detail
-
onStartup
default void onStartup(Engine engine)
Notified when the Engine is starting prior to accepting any requests which allows listeners to perform additional configuration.- Parameters:
engine- the Engine starting
-
onShutdown
default void onShutdown(Engine engine)
Notified when the Engine is shutting down and has stopped receiving requests allowing listeners to perform any resource cleanup.- Parameters:
engine- the Engine stopping
-
-