Package io.tarantool.driver.protocol
Class NotEmptyTarantoolResponseBody
- java.lang.Object
-
- io.tarantool.driver.protocol.NotEmptyTarantoolResponseBody
-
- All Implemented Interfaces:
TarantoolResponseBody
public class NotEmptyTarantoolResponseBody extends Object implements TarantoolResponseBody
Represents non-empty body from a map with one key and the actual data as value
-
-
Constructor Summary
Constructors Constructor Description NotEmptyTarantoolResponseBody(int code, org.msgpack.value.Value data)
Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.msgpack.value.Value
getData()
Get response body dataTarantoolResponseBodyType
getResponseBodyType()
Get response body type
-
-
-
Constructor Detail
-
NotEmptyTarantoolResponseBody
public NotEmptyTarantoolResponseBody(int code, org.msgpack.value.Value data) throws TarantoolProtocolException
Basic constructor.- Parameters:
code
- first key in the body MP_MAP valuedata
- the data (of type MP_OBJECT)- Throws:
TarantoolProtocolException
- if the specified code doesn't correspond to a validTarantoolResponseBodyType
-
-
Method Detail
-
getResponseBodyType
public TarantoolResponseBodyType getResponseBodyType()
Description copied from interface:TarantoolResponseBody
Get response body type- Specified by:
getResponseBodyType
in interfaceTarantoolResponseBody
- Returns:
- the type of response body
-
getData
public org.msgpack.value.Value getData()
Description copied from interface:TarantoolResponseBody
Get response body data- Specified by:
getData
in interfaceTarantoolResponseBody
- Returns:
- a MessagePack entity
-
-