org.atmosphere.socketio.transport
Enum SocketIOPacketImpl.PacketType
java.lang.Object
java.lang.Enum<SocketIOPacketImpl.PacketType>
org.atmosphere.socketio.transport.SocketIOPacketImpl.PacketType
- All Implemented Interfaces:
- Serializable, Comparable<SocketIOPacketImpl.PacketType>
- Enclosing class:
- SocketIOPacketImpl
public static enum SocketIOPacketImpl.PacketType
- extends Enum<SocketIOPacketImpl.PacketType>
UNKNOWN
public static final SocketIOPacketImpl.PacketType UNKNOWN
DISCONNECT
public static final SocketIOPacketImpl.PacketType DISCONNECT
CONNECT
public static final SocketIOPacketImpl.PacketType CONNECT
HEARTBEAT
public static final SocketIOPacketImpl.PacketType HEARTBEAT
MESSAGE
public static final SocketIOPacketImpl.PacketType MESSAGE
JSON
public static final SocketIOPacketImpl.PacketType JSON
EVENT
public static final SocketIOPacketImpl.PacketType EVENT
ACK
public static final SocketIOPacketImpl.PacketType ACK
ERROR
public static final SocketIOPacketImpl.PacketType ERROR
NOOP
public static final SocketIOPacketImpl.PacketType NOOP
values
public static SocketIOPacketImpl.PacketType[] 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 (SocketIOPacketImpl.PacketType c : SocketIOPacketImpl.PacketType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SocketIOPacketImpl.PacketType 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 name
NullPointerException - if the argument is null
value
public int value()
fromInt
public static SocketIOPacketImpl.PacketType fromInt(int val)
Copyright © 2015. All Rights Reserved.