Enum SingleThreadedBufferingSubscriber.BackPressureState
- java.lang.Object
-
- java.lang.Enum<SingleThreadedBufferingSubscriber.BackPressureState>
-
- io.micronaut.core.async.subscriber.SingleThreadedBufferingSubscriber.BackPressureState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SingleThreadedBufferingSubscriber.BackPressureState>
- Enclosing class:
- SingleThreadedBufferingSubscriber<T>
protected static enum SingleThreadedBufferingSubscriber.BackPressureState extends java.lang.Enum<SingleThreadedBufferingSubscriber.BackPressureState>
Back pressure state.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUFFERING
Buffering has stared, but not demand present.DEMANDING
The buffer is empty but there demand.DONE
Finished.FLOWING
The data has been read (SingleThreadedBufferingSubscriber.onComplete()
has been called), however the buffer is not empty.IDLE
There is no demand yet and no buffering has taken place.NO_SUBSCRIBER
There is no subscriber.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SingleThreadedBufferingSubscriber.BackPressureState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SingleThreadedBufferingSubscriber.BackPressureState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_SUBSCRIBER
public static final SingleThreadedBufferingSubscriber.BackPressureState NO_SUBSCRIBER
There is no subscriber.
-
IDLE
public static final SingleThreadedBufferingSubscriber.BackPressureState IDLE
There is no demand yet and no buffering has taken place.
-
BUFFERING
public static final SingleThreadedBufferingSubscriber.BackPressureState BUFFERING
Buffering has stared, but not demand present.
-
DEMANDING
public static final SingleThreadedBufferingSubscriber.BackPressureState DEMANDING
The buffer is empty but there demand.
-
FLOWING
public static final SingleThreadedBufferingSubscriber.BackPressureState FLOWING
The data has been read (SingleThreadedBufferingSubscriber.onComplete()
has been called), however the buffer is not empty.
-
DONE
public static final SingleThreadedBufferingSubscriber.BackPressureState DONE
Finished.
-
-
Method Detail
-
values
public static SingleThreadedBufferingSubscriber.BackPressureState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SingleThreadedBufferingSubscriber.BackPressureState c : SingleThreadedBufferingSubscriber.BackPressureState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SingleThreadedBufferingSubscriber.BackPressureState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-