Package io.tarantool.driver.protocol
Class TarantoolRequestBody
- java.lang.Object
-
- io.tarantool.driver.protocol.TarantoolRequestBody
-
- All Implemented Interfaces:
Packable,Serializable
public class TarantoolRequestBody extends Object implements Packable
Represents basic Tarantool request body- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TarantoolRequestBody()In rare cases, the body may be empty.TarantoolRequestBody(Map<Integer,?> body, MessagePackObjectMapper mapper)Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.msgpack.value.ValuetoMessagePackValue(MessagePackObjectMapper mapper)Convert this instance into a corresponding MessagePackValue
-
-
-
Constructor Detail
-
TarantoolRequestBody
public TarantoolRequestBody()
In rare cases, the body may be empty. Creates a request with empty body
-
TarantoolRequestBody
public TarantoolRequestBody(Map<Integer,?> body, MessagePackObjectMapper mapper) throws TarantoolProtocolException
Basic constructor. Takes a typicalMapwithIntegerkeys andObjectvalues. Converts values into MessagePack entities using the passed instance ofMessagePackObjectMapper. See https://www.tarantool.io/en/doc/2.3/dev_guide/internals/box_protocol/#binary-protocol-requests- Parameters:
body- request bodymapper- provides mapping for Java objects to MessagePack entities- Throws:
TarantoolProtocolException- in case if mapping of body parts to objects failed
-
-
Method Detail
-
toMessagePackValue
public org.msgpack.value.Value toMessagePackValue(MessagePackObjectMapper mapper)
Description copied from interface:PackableConvert this instance into a corresponding MessagePackValue- Specified by:
toMessagePackValuein interfacePackable- Parameters:
mapper- configured Java objects to entities mapper- Returns:
- MessagePack entity
-
-