Package org.playframework.netty
Enum Class HandlerPublisher.State
- All Implemented Interfaces:
Serializable
,Comparable<HandlerPublisher.State>
,Constable
- Enclosing class:
HandlerPublisher<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThere is no demand, and we're buffering elements.We have nothing buffered, but there is demand.We're done, in the terminal state.The stream is complete, however there are still elements buffered for which no demand has come from the subscriber.There is no demand, and we have nothing buffered.A subscriber has been provided, but no context has been provided.A context has been provided, but no subscriber has been provided.An error has been received, but there's no subscriber to receive it.Initial state. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerPublisher.State
Returns the enum constant of this class with the specified name.static HandlerPublisher.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_SUBSCRIBER_OR_CONTEXT
Initial state. There's no subscriber, and no context. -
NO_CONTEXT
A subscriber has been provided, but no context has been provided. -
NO_SUBSCRIBER
A context has been provided, but no subscriber has been provided. -
NO_SUBSCRIBER_ERROR
An error has been received, but there's no subscriber to receive it. -
IDLE
There is no demand, and we have nothing buffered. -
BUFFERING
There is no demand, and we're buffering elements. -
DEMANDING
We have nothing buffered, but there is demand. -
DRAINING
The stream is complete, however there are still elements buffered for which no demand has come from the subscriber. -
DONE
We're done, in the terminal state.
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-