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.ValuegetData()Get response body dataTarantoolResponseBodyTypegetResponseBodyType()Get response body type
-
-
-
Constructor Detail
-
NotEmptyTarantoolResponseBody
public NotEmptyTarantoolResponseBody(int code, org.msgpack.value.Value data) throws TarantoolProtocolExceptionBasic 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:TarantoolResponseBodyGet response body type- Specified by:
getResponseBodyTypein interfaceTarantoolResponseBody- Returns:
- the type of response body
-
getData
public org.msgpack.value.Value getData()
Description copied from interface:TarantoolResponseBodyGet response body data- Specified by:
getDatain interfaceTarantoolResponseBody- Returns:
- a MessagePack entity
-
-