public static class AntiEntropyService.TreeRequest.TreeRequestSerializer extends java.lang.Object implements IVersionedSerializer<AntiEntropyService.TreeRequest>
Constructor and Description |
---|
AntiEntropyService.TreeRequest.TreeRequestSerializer() |
Modifier and Type | Method and Description |
---|---|
AntiEntropyService.TreeRequest |
deserialize(java.io.DataInput dis,
int version)
Deserialize into the specified DataInputStream instance.
|
void |
serialize(AntiEntropyService.TreeRequest request,
java.io.DataOutput dos,
int version)
Serialize the specified type into the specified DataOutputStream instance.
|
long |
serializedSize(AntiEntropyService.TreeRequest request,
int version)
Calculate serialized size of object without actually serializing.
|
public AntiEntropyService.TreeRequest.TreeRequestSerializer()
public void serialize(AntiEntropyService.TreeRequest request, java.io.DataOutput dos, int version) throws java.io.IOException
IVersionedSerializer
serialize
in interface IVersionedSerializer<AntiEntropyService.TreeRequest>
request
- type that needs to be serializeddos
- DataOutput into which serialization needs to happen.version
- protocol versionjava.io.IOException
public AntiEntropyService.TreeRequest deserialize(java.io.DataInput dis, int version) throws java.io.IOException
IVersionedSerializer
deserialize
in interface IVersionedSerializer<AntiEntropyService.TreeRequest>
dis
- DataInput from which deserialization needs to happen.version
- protocol versionjava.io.IOException
public long serializedSize(AntiEntropyService.TreeRequest request, int version)
IVersionedSerializer
serializedSize
in interface IVersionedSerializer<AntiEntropyService.TreeRequest>
request
- object to calculate serialized sizeversion
- protocol versionCopyright © 2013 The Apache Software Foundation