Enum Class SingleThreadedBufferingSubscriber.BackPressureState
java.lang.Object
java.lang.Enum<SingleThreadedBufferingSubscriber.BackPressureState>
io.micronaut.core.async.subscriber.SingleThreadedBufferingSubscriber.BackPressureState
- All Implemented Interfaces:
Serializable
,Comparable<SingleThreadedBufferingSubscriber.BackPressureState>
,Constable
- Enclosing class:
- SingleThreadedBufferingSubscriber<T>
protected static enum SingleThreadedBufferingSubscriber.BackPressureState
extends Enum<SingleThreadedBufferingSubscriber.BackPressureState>
Back pressure state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBuffering has stared, but not demand present.The buffer is empty but there demand.Finished.The data has been read (SingleThreadedBufferingSubscriber.onComplete()
has been called), however the buffer is not empty.There is no demand yet and no buffering has taken place.There is no subscriber. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_SUBSCRIBER
There is no subscriber. -
IDLE
There is no demand yet and no buffering has taken place. -
BUFFERING
Buffering has stared, but not demand present. -
DEMANDING
The buffer is empty but there demand. -
FLOWING
The data has been read (SingleThreadedBufferingSubscriber.onComplete()
has been called), however the buffer is not empty. -
DONE
Finished.
-
-
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
-