Package kvd.common.packet.proto
Enum PacketType
- java.lang.Object
-
- java.lang.Enum<PacketType>
-
- kvd.common.packet.proto.PacketType
-
- All Implemented Interfaces:
Serializable
,Comparable<PacketType>
public enum PacketType extends Enum<PacketType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PacketType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PacketType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HELLO
public static final PacketType HELLO
-
BYE
public static final PacketType BYE
-
PING
public static final PacketType PING
-
PONG
public static final PacketType PONG
-
PUT_INIT
public static final PacketType PUT_INIT
-
PUT_DATA
public static final PacketType PUT_DATA
-
PUT_FINISH
public static final PacketType PUT_FINISH
-
PUT_COMPLETE
public static final PacketType PUT_COMPLETE
-
GET_INIT
public static final PacketType GET_INIT
-
GET_DATA
public static final PacketType GET_DATA
-
GET_FINISH
public static final PacketType GET_FINISH
-
CONTAINS_REQUEST
public static final PacketType CONTAINS_REQUEST
-
CONTAINS_RESPONSE
public static final PacketType CONTAINS_RESPONSE
-
REMOVE_REQUEST
public static final PacketType REMOVE_REQUEST
-
REMOVE_RESPONSE
public static final PacketType REMOVE_RESPONSE
-
CLOSE_CHANNEL
public static final PacketType CLOSE_CHANNEL
-
PUT_ABORT
public static final PacketType PUT_ABORT
-
GET_ABORT
public static final PacketType GET_ABORT
-
CONTAINS_ABORT
public static final PacketType CONTAINS_ABORT
-
REMOVE_ABORT
public static final PacketType REMOVE_ABORT
-
TX_BEGIN
public static final PacketType TX_BEGIN
-
TX_COMMIT
public static final PacketType TX_COMMIT
-
TX_ROLLBACK
public static final PacketType TX_ROLLBACK
-
TX_ABORT
public static final PacketType TX_ABORT
-
TX_CLOSED
public static final PacketType TX_CLOSED
-
INVALID_REQUEST
public static final PacketType INVALID_REQUEST
-
LOCK
public static final PacketType LOCK
-
ABORT
public static final PacketType ABORT
-
REMOVEALL_REQUEST
public static final PacketType REMOVEALL_REQUEST
-
-
Method Detail
-
values
public static 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 (PacketType c : 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 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 nameNullPointerException
- if the argument is null
-
-