Class TarantoolResponse

    • Method Detail

      • getSyncId

        public Long getSyncId()
        Get request ID
        Returns:
        a number
      • getBody

        public TarantoolResponseBody getBody()
        Get response body
        Returns:
        a MessagePack entity
        See Also:
        Value
      • getResponseCode

        public Long getResponseCode()
        Get response code
        Returns:
        a number, equal to 0 in case of OK response
        See Also:
        TarantoolResponseType
      • fromMessagePack

        public static TarantoolResponse fromMessagePack​(org.msgpack.core.MessageUnpacker unpacker)
                                                 throws TarantoolProtocolException
        Create Tarantool response from the decoded binary data using MessageUnpacker
        Parameters:
        unpacker - configured MessageUnpacker
        Returns:
        Tarantool response populated from the decoded binary data
        Throws:
        TarantoolProtocolException - if the unpacked data is invalid