GraphBinaryMessageSerializerV1
.@Deprecated public abstract class AbstractGryoMessageSerializerV1d0 extends AbstractMessageSerializer<org.apache.tinkerpop.shaded.kryo.Kryo>
Modifier and Type | Field and Description |
---|---|
protected boolean |
serializeToString
Deprecated.
|
static String |
TOKEN_BUFFER_SIZE
Deprecated.
|
static String |
TOKEN_CLASS_RESOLVER_SUPPLIER
Deprecated.
|
static String |
TOKEN_CUSTOM
Deprecated.
|
static String |
TOKEN_SERIALIZE_RESULT_TO_STRING
Deprecated.
|
TOKEN_IO_REGISTRIES
logger
Constructor and Description |
---|
AbstractGryoMessageSerializerV1d0(GryoMapper kryo)
Deprecated.
Creates an instance with a provided mapper configured
GryoMapper instance. |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map<String,Object> config,
Map<String,Graph> graphs)
Deprecated.
Configure the serializer with mapper settings as required.
|
RequestMessage |
deserializeRequest(io.netty.buffer.ByteBuf msg)
Deprecated.
Deserialize a Netty
ByteBuf into a RequestMessage . |
ResponseMessage |
deserializeResponse(io.netty.buffer.ByteBuf msg)
Deprecated.
Deserialize a Netty
ByteBuf into a ResponseMessage . |
org.apache.tinkerpop.shaded.kryo.Kryo |
getMapper()
Deprecated.
Gets the "mapper" that performs the underlying serialization work.
|
io.netty.buffer.ByteBuf |
serializeRequestAsBinary(RequestMessage requestMessage,
io.netty.buffer.ByteBufAllocator allocator)
Deprecated.
Serialize a
ResponseMessage to a Netty ByteBuf . |
io.netty.buffer.ByteBuf |
serializeResponseAsBinary(ResponseMessage responseMessage,
io.netty.buffer.ByteBufAllocator allocator)
Deprecated.
Serialize a
ResponseMessage to a Netty ByteBuf . |
addIoRegistries, getListStringFromConfig, tryInstanceMethod
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mimeTypesSupported
public static final String TOKEN_CUSTOM
public static final String TOKEN_SERIALIZE_RESULT_TO_STRING
public static final String TOKEN_BUFFER_SIZE
public static final String TOKEN_CLASS_RESOLVER_SUPPLIER
protected boolean serializeToString
public AbstractGryoMessageSerializerV1d0(GryoMapper kryo)
GryoMapper
instance. Note that this instance
will be overridden by configure(java.util.Map<java.lang.String, java.lang.Object>, java.util.Map<java.lang.String, org.apache.tinkerpop.gremlin.structure.Graph>)
is called.public org.apache.tinkerpop.shaded.kryo.Kryo getMapper()
MessageSerializer
public final void configure(Map<String,Object> config, Map<String,Graph> graphs)
MessageSerializer
public ResponseMessage deserializeResponse(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a ResponseMessage
.SerializationException
public io.netty.buffer.ByteBuf serializeResponseAsBinary(ResponseMessage responseMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException
MessageSerializer
ResponseMessage
to a Netty ByteBuf
.responseMessage
- The response message to serialize to bytes.allocator
- The Netty allocator for the ByteBuf
to return back.SerializationException
public RequestMessage deserializeRequest(io.netty.buffer.ByteBuf msg) throws SerializationException
MessageSerializer
ByteBuf
into a RequestMessage
.SerializationException
public io.netty.buffer.ByteBuf serializeRequestAsBinary(RequestMessage requestMessage, io.netty.buffer.ByteBufAllocator allocator) throws SerializationException
MessageSerializer
ResponseMessage
to a Netty ByteBuf
.requestMessage
- The request message to serialize to bytes.allocator
- The Netty allocator for the ByteBuf
to return back.SerializationException
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.