Package io.tarantool.driver.protocol
Enum TarantoolResponseBodyType
- java.lang.Object
-
- java.lang.Enum<TarantoolResponseBodyType>
-
- io.tarantool.driver.protocol.TarantoolResponseBodyType
-
- All Implemented Interfaces:
Serializable
,Comparable<TarantoolResponseBodyType>
public enum TarantoolResponseBodyType extends Enum<TarantoolResponseBodyType>
Incapsulates Tarantool response body types
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTY
IPROTO_DATA
IPROTO_ERROR
IPROTO_SQL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TarantoolResponseBodyType
fromCode(int code)
static TarantoolResponseBodyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TarantoolResponseBodyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final TarantoolResponseBodyType EMPTY
-
IPROTO_DATA
public static final TarantoolResponseBodyType IPROTO_DATA
-
IPROTO_ERROR
public static final TarantoolResponseBodyType IPROTO_ERROR
-
IPROTO_SQL
public static final TarantoolResponseBodyType IPROTO_SQL
-
-
Method Detail
-
values
public static TarantoolResponseBodyType[] 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 (TarantoolResponseBodyType c : TarantoolResponseBodyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TarantoolResponseBodyType 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
-
fromCode
public static TarantoolResponseBodyType fromCode(int code) throws TarantoolProtocolException
- Throws:
TarantoolProtocolException
-
-