public static enum TXPacket.PacketType extends java.lang.Enum<TXPacket.PacketType> implements IntegerPacketType
Enum Constant and Description |
---|
ABORT_REQUEST |
COMMIT_REQUEST |
LOCK_REQUEST |
TX_OP_REQUEST |
TX_STATE_REQUEST |
UNLOCK_REQUEST |
Modifier and Type | Field and Description |
---|---|
static IntegerPacketTypeMap<TXPacket.PacketType> |
intToType |
Modifier and Type | Method and Description |
---|---|
int |
getInt() |
static TXPacket.PacketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TXPacket.PacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TXPacket.PacketType LOCK_REQUEST
public static final TXPacket.PacketType UNLOCK_REQUEST
public static final TXPacket.PacketType ABORT_REQUEST
public static final TXPacket.PacketType COMMIT_REQUEST
public static final TXPacket.PacketType TX_STATE_REQUEST
public static final TXPacket.PacketType TX_OP_REQUEST
public static final IntegerPacketTypeMap<TXPacket.PacketType> intToType
public static TXPacket.PacketType[] values()
for (TXPacket.PacketType c : TXPacket.PacketType.values()) System.out.println(c);
public static TXPacket.PacketType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getInt()
getInt
in interface IntegerType
this
.