Package io.tarantool.driver.protocol
Enum TarantoolRequestType
- java.lang.Object
-
- java.lang.Enum<TarantoolRequestType>
-
- io.tarantool.driver.protocol.TarantoolRequestType
-
- All Implemented Interfaces:
Serializable
,Comparable<TarantoolRequestType>
public enum TarantoolRequestType extends Enum<TarantoolRequestType>
Encapsulates a set of supported Tarantool request codes
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IPROTO_AUTH
IPROTO_CALL
IPROTO_DELETE
IPROTO_EVAL
IPROTO_INSERT
IPROTO_REPLACE
IPROTO_SELECT
IPROTO_UPDATE
IPROTO_UPSERT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCode()
static TarantoolRequestType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TarantoolRequestType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IPROTO_SELECT
public static final TarantoolRequestType IPROTO_SELECT
-
IPROTO_INSERT
public static final TarantoolRequestType IPROTO_INSERT
-
IPROTO_REPLACE
public static final TarantoolRequestType IPROTO_REPLACE
-
IPROTO_UPDATE
public static final TarantoolRequestType IPROTO_UPDATE
-
IPROTO_DELETE
public static final TarantoolRequestType IPROTO_DELETE
-
IPROTO_AUTH
public static final TarantoolRequestType IPROTO_AUTH
-
IPROTO_EVAL
public static final TarantoolRequestType IPROTO_EVAL
-
IPROTO_UPSERT
public static final TarantoolRequestType IPROTO_UPSERT
-
IPROTO_CALL
public static final TarantoolRequestType IPROTO_CALL
-
-
Method Detail
-
values
public static TarantoolRequestType[] 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 (TarantoolRequestType c : TarantoolRequestType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TarantoolRequestType 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
-
getCode
public long getCode()
-
-