Interface ServerActivity


  • public interface ServerActivity
    A server activity that may have to finish before the server can shut down gracefully.
    Author:
    Stuart Douglas
    • Method Detail

      • preSuspend

        void preSuspend​(ServerActivityCallback listener)
        Invoked before the server is paused. This is the place where pause notifications should be sent to external systems such as load balancers to tell them this node is about to go away.
        Parameters:
        listener - The listener to invoker when the pre-pause phase is done
      • suspended

        void suspended​(ServerActivityCallback listener)
        Invoked once the suspend process has started. One this has been invoked no new requests should be allowed to proceeed
        Parameters:
        listener - The listener to invoke when suspend is done.
      • resume

        void resume()
        Invoked if the suspend or pre-suspened is cancelled