Enum Class HandlerPublisher.State

java.lang.Object
java.lang.Enum<HandlerPublisher.State>
org.playframework.netty.HandlerPublisher.State
All Implemented Interfaces:
Serializable, Comparable<HandlerPublisher.State>, Constable
Enclosing class:
HandlerPublisher<T>

static enum HandlerPublisher.State extends Enum<HandlerPublisher.State>
  • Enum Constant Details

    • NO_SUBSCRIBER_OR_CONTEXT

      public static final HandlerPublisher.State NO_SUBSCRIBER_OR_CONTEXT
      Initial state. There's no subscriber, and no context.
    • NO_CONTEXT

      public static final HandlerPublisher.State NO_CONTEXT
      A subscriber has been provided, but no context has been provided.
    • NO_SUBSCRIBER

      public static final HandlerPublisher.State NO_SUBSCRIBER
      A context has been provided, but no subscriber has been provided.
    • NO_SUBSCRIBER_ERROR

      public static final HandlerPublisher.State NO_SUBSCRIBER_ERROR
      An error has been received, but there's no subscriber to receive it.
    • IDLE

      public static final HandlerPublisher.State IDLE
      There is no demand, and we have nothing buffered.
    • BUFFERING

      public static final HandlerPublisher.State BUFFERING
      There is no demand, and we're buffering elements.
    • DEMANDING

      public static final HandlerPublisher.State DEMANDING
      We have nothing buffered, but there is demand.
    • DRAINING

      public static final HandlerPublisher.State DRAINING
      The stream is complete, however there are still elements buffered for which no demand has come from the subscriber.
    • DONE

      public static final HandlerPublisher.State DONE
      We're done, in the terminal state.
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static HandlerPublisher.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HandlerPublisher.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null