Package io.lettuce.core.pubsub
Enum PubSubOutput.Type
- java.lang.Object
-
- java.lang.Enum<PubSubOutput.Type>
-
- io.lettuce.core.pubsub.PubSubOutput.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<PubSubOutput.Type>
- Enclosing class:
- PubSubOutput<K,V>
public static enum PubSubOutput.Type extends Enum<PubSubOutput.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description message
pmessage
psubscribe
punsubscribe
subscribe
unsubscribe
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isPubSubType(String name)
static PubSubOutput.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static PubSubOutput.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
message
public static final PubSubOutput.Type message
-
pmessage
public static final PubSubOutput.Type pmessage
-
psubscribe
public static final PubSubOutput.Type psubscribe
-
punsubscribe
public static final PubSubOutput.Type punsubscribe
-
subscribe
public static final PubSubOutput.Type subscribe
-
unsubscribe
public static final PubSubOutput.Type unsubscribe
-
-
Method Detail
-
values
public static PubSubOutput.Type[] 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 (PubSubOutput.Type c : PubSubOutput.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PubSubOutput.Type 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
-
isPubSubType
public static boolean isPubSubType(String name)
-
-