Interface ShutdownGate.Signal

Enclosing class:
ShutdownGate

static interface ShutdownGate.Signal
The one shutdown signal; see the class comment.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ShutdownGate.Signal
    A signal that never refuses: for bindings with no plugin behind them.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    Returns the permit enter() gave; may run on a thread other than the one that entered.
  • Field Details

    • OPEN

      static final ShutdownGate.Signal OPEN
      A signal that never refuses: for bindings with no plugin behind them.
  • Method Details

    • enter

      boolean enter()
      Returns:
      true when a state change may start now; the caller then calls exit() exactly once when it ends. false when the server is shutting down; nothing was taken.
    • exit

      void exit()
      Returns the permit enter() gave; may run on a thread other than the one that entered.