Package io.ably.lib.types
Enum ProtocolMessage.Action
- java.lang.Object
-
- java.lang.Enum<ProtocolMessage.Action>
-
- io.ably.lib.types.ProtocolMessage.Action
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProtocolMessage.Action>
- Enclosing class:
- ProtocolMessage
public static enum ProtocolMessage.Action extends java.lang.Enum<ProtocolMessage.Action>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtocolMessage.ActionfindByValue(int value)intgetValue()static ProtocolMessage.ActionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProtocolMessage.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
heartbeat
public static final ProtocolMessage.Action heartbeat
-
ack
public static final ProtocolMessage.Action ack
-
nack
public static final ProtocolMessage.Action nack
-
connect
public static final ProtocolMessage.Action connect
-
connected
public static final ProtocolMessage.Action connected
-
disconnect
public static final ProtocolMessage.Action disconnect
-
disconnected
public static final ProtocolMessage.Action disconnected
-
close
public static final ProtocolMessage.Action close
-
closed
public static final ProtocolMessage.Action closed
-
error
public static final ProtocolMessage.Action error
-
attach
public static final ProtocolMessage.Action attach
-
attached
public static final ProtocolMessage.Action attached
-
detach
public static final ProtocolMessage.Action detach
-
detached
public static final ProtocolMessage.Action detached
-
presence
public static final ProtocolMessage.Action presence
-
message
public static final ProtocolMessage.Action message
-
sync
public static final ProtocolMessage.Action sync
-
auth
public static final ProtocolMessage.Action auth
-
-
Method Detail
-
values
public static ProtocolMessage.Action[] 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.Action c : ProtocolMessage.Action.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.Action 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
-
getValue
public int getValue()
-
findByValue
public static ProtocolMessage.Action findByValue(int value)
-
-