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