Package io.ably.lib.types
Enum ProtocolMessage.Flag
- java.lang.Object
-
- java.lang.Enum<ProtocolMessage.Flag>
-
- io.ably.lib.types.ProtocolMessage.Flag
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProtocolMessage.Flag>
- Enclosing class:
- ProtocolMessage
public static enum ProtocolMessage.Flag extends java.lang.Enum<ProtocolMessage.Flag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description attach_resumehas_backloghas_presencepresencepresence_subscribepublishresumedsubscribe
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMask()static ProtocolMessage.FlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProtocolMessage.Flag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
has_presence
public static final ProtocolMessage.Flag has_presence
-
has_backlog
public static final ProtocolMessage.Flag has_backlog
-
resumed
public static final ProtocolMessage.Flag resumed
-
attach_resume
public static final ProtocolMessage.Flag attach_resume
-
presence
public static final ProtocolMessage.Flag presence
-
publish
public static final ProtocolMessage.Flag publish
-
subscribe
public static final ProtocolMessage.Flag subscribe
-
presence_subscribe
public static final ProtocolMessage.Flag presence_subscribe
-
-
Method Detail
-
values
public static ProtocolMessage.Flag[] 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 (ProtocolMessage.Flag c : ProtocolMessage.Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolMessage.Flag 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
-
getMask
public int getMask()
-
-