- java.lang.Object
-
- java.lang.Enum<MessageBodyContext.EventType>
-
- io.helidon.media.common.MessageBodyContext.EventType
-
- All Implemented Interfaces:
Serializable
,Comparable<MessageBodyContext.EventType>
- Enclosing class:
- MessageBodyContext
public static enum MessageBodyContext.EventType extends Enum<MessageBodyContext.EventType>
Message body content subscription event types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_ONCOMPLETE
Emitted afterFlow.Subscriber.onComplete()
.AFTER_ONERROR
Emitted afterFlow.Subscriber.onError(Throwable)
.AFTER_ONNEXT
Emitted afterFlow.Subscriber.onNext(Object)
.AFTER_ONSUBSCRIBE
Emitted afterFlow.Subscriber.onSubscribe(Subscription)
.BEFORE_ONCOMPLETE
Emitted afterFlow.Subscriber.onComplete()
.BEFORE_ONERROR
Emitted beforeFlow.Subscriber.onError(Throwable)
.BEFORE_ONNEXT
Emitted beforeFlow.Subscriber.onNext(Object)
.BEFORE_ONSUBSCRIBE
Emitted beforeFlow.Subscriber.onSubscribe(Subscription)
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageBodyContext.EventType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MessageBodyContext.EventType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_ONSUBSCRIBE
public static final MessageBodyContext.EventType BEFORE_ONSUBSCRIBE
Emitted beforeFlow.Subscriber.onSubscribe(Subscription)
.
-
AFTER_ONSUBSCRIBE
public static final MessageBodyContext.EventType AFTER_ONSUBSCRIBE
Emitted afterFlow.Subscriber.onSubscribe(Subscription)
.
-
BEFORE_ONNEXT
public static final MessageBodyContext.EventType BEFORE_ONNEXT
Emitted beforeFlow.Subscriber.onNext(Object)
.
-
AFTER_ONNEXT
public static final MessageBodyContext.EventType AFTER_ONNEXT
Emitted afterFlow.Subscriber.onNext(Object)
.
-
BEFORE_ONERROR
public static final MessageBodyContext.EventType BEFORE_ONERROR
Emitted beforeFlow.Subscriber.onError(Throwable)
.
-
AFTER_ONERROR
public static final MessageBodyContext.EventType AFTER_ONERROR
Emitted afterFlow.Subscriber.onError(Throwable)
.
-
BEFORE_ONCOMPLETE
public static final MessageBodyContext.EventType BEFORE_ONCOMPLETE
Emitted afterFlow.Subscriber.onComplete()
.
-
AFTER_ONCOMPLETE
public static final MessageBodyContext.EventType AFTER_ONCOMPLETE
Emitted afterFlow.Subscriber.onComplete()
.
-
-
Method Detail
-
values
public static MessageBodyContext.EventType[] 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 (MessageBodyContext.EventType c : MessageBodyContext.EventType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageBodyContext.EventType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-