Interface LifecycleListener


  • public interface LifecycleListener
    A listener for service lifecycle events. The associated controller will not leave its current state until all listeners finish running.
    Author:
    Richard Opalka
    • Method Detail

      • handleEvent

        void handleEvent​(ServiceController<?> controller,
                         LifecycleEvent event)
        The service has entered new state
        Parameters:
        controller - the controller
        event - the lifecycle event