Package io.inversion

Interface Engine.EngineListener

All Superinterfaces:
Api.ApiListener
Enclosing class:
Engine

public static interface Engine.EngineListener extends Api.ApiListener
Receives Engine and Api lifecycle, per request and per error callback notifications.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Notified when the Engine is shutting down and has stopped receiving requests allowing listeners to perform any resource cleanup.
    default void
    onStartup(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

    afterError, afterRequest, beforeFinally, onShutdown, onStartup
  • Method Details

    • 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