Enum WireProtocolMessage.OpCode
- java.lang.Object
-
- java.lang.Enum<WireProtocolMessage.OpCode>
-
- de.caluga.morphium.driver.wireprotocol.WireProtocolMessage.OpCode
-
- All Implemented Interfaces:
Serializable,Comparable<WireProtocolMessage.OpCode>
- Enclosing class:
- WireProtocolMessage
public static enum WireProtocolMessage.OpCode extends Enum<WireProtocolMessage.OpCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OP_COMPRESSEDOP_DELETEOP_GET_MOREOP_INSERTOP_KILL_CURSORSOP_MSGOP_QUERYOP_REPLYOP_UPDATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WireProtocolMessage.OpCodevalueOf(String name)Returns the enum constant of this type with the specified name.static WireProtocolMessage.OpCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OP_REPLY
public static final WireProtocolMessage.OpCode OP_REPLY
-
OP_UPDATE
public static final WireProtocolMessage.OpCode OP_UPDATE
-
OP_INSERT
public static final WireProtocolMessage.OpCode OP_INSERT
-
OP_QUERY
public static final WireProtocolMessage.OpCode OP_QUERY
-
OP_GET_MORE
public static final WireProtocolMessage.OpCode OP_GET_MORE
-
OP_DELETE
public static final WireProtocolMessage.OpCode OP_DELETE
-
OP_KILL_CURSORS
public static final WireProtocolMessage.OpCode OP_KILL_CURSORS
-
OP_COMPRESSED
public static final WireProtocolMessage.OpCode OP_COMPRESSED
-
OP_MSG
public static final WireProtocolMessage.OpCode OP_MSG
-
-
Method Detail
-
values
public static WireProtocolMessage.OpCode[] 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 (WireProtocolMessage.OpCode c : WireProtocolMessage.OpCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WireProtocolMessage.OpCode 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
-
-