Package io.smallrye.reactive.messaging
Enum MediatorConfiguration.Consumption
- java.lang.Object
-
- java.lang.Enum<MediatorConfiguration.Consumption>
-
- io.smallrye.reactive.messaging.MediatorConfiguration.Consumption
-
- All Implemented Interfaces:
Serializable
,Comparable<MediatorConfiguration.Consumption>
- Enclosing interface:
- MediatorConfiguration
public static enum MediatorConfiguration.Consumption extends Enum<MediatorConfiguration.Consumption>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGE
NONE
PAYLOAD
STREAM_OF_MESSAGE
STREAM_OF_PAYLOAD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediatorConfiguration.Consumption
valueOf(String name)
Returns the enum constant of this type with the specified name.static MediatorConfiguration.Consumption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAM_OF_MESSAGE
public static final MediatorConfiguration.Consumption STREAM_OF_MESSAGE
-
STREAM_OF_PAYLOAD
public static final MediatorConfiguration.Consumption STREAM_OF_PAYLOAD
-
MESSAGE
public static final MediatorConfiguration.Consumption MESSAGE
-
PAYLOAD
public static final MediatorConfiguration.Consumption PAYLOAD
-
NONE
public static final MediatorConfiguration.Consumption NONE
-
-
Method Detail
-
values
public static MediatorConfiguration.Consumption[] 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 (MediatorConfiguration.Consumption c : MediatorConfiguration.Consumption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MediatorConfiguration.Consumption 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
-
-