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