public static class MessagingService.CallbackDeterminedSerializer extends java.lang.Object implements IVersionedSerializer<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
static MessagingService.CallbackDeterminedSerializer |
instance |
Constructor and Description |
---|
CallbackDeterminedSerializer() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deserialize(DataInputPlus in,
int version)
Deserialize into the specified DataInputStream instance.
|
void |
serialize(java.lang.Object o,
DataOutputPlus out,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(java.lang.Object o,
int version)
Calculate serialized size of object without actually serializing.
|
public static final MessagingService.CallbackDeterminedSerializer instance
public java.lang.Object deserialize(DataInputPlus in, int version) throws java.io.IOException
IVersionedSerializer
deserialize
in interface IVersionedSerializer<java.lang.Object>
in
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
- if deserialization failspublic void serialize(java.lang.Object o, DataOutputPlus out, int version) throws java.io.IOException
IVersionedSerializer
serialize
in interface IVersionedSerializer<java.lang.Object>
o
- type that needs to be serializedout
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
- if serialization failspublic long serializedSize(java.lang.Object o, int version)
IVersionedSerializer
serializedSize
in interface IVersionedSerializer<java.lang.Object>
o
- object to calculate serialized sizeversion
- protocol versionCopyright © 2022 The Apache Software Foundation