Class PaxosPrepare.ResponseSerializer

java.lang.Object
org.apache.cassandra.service.paxos.PaxosPrepare.ResponseSerializer
All Implemented Interfaces:
IVersionedAsymmetricSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response,org.apache.cassandra.service.paxos.PaxosPrepare.Response>, IVersionedSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response>
Enclosing class:
PaxosPrepare

public static class PaxosPrepare.ResponseSerializer extends Object implements IVersionedSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.cassandra.service.paxos.PaxosPrepare.Response
    deserialize(DataInputPlus in, int version)
    Deserialize into the specified DataInputStream instance.
    void
    serialize(org.apache.cassandra.service.paxos.PaxosPrepare.Response response, DataOutputPlus out, int version)
    Serialize the specified type into the specified DataOutputStream instance.
    long
    serializedSize(org.apache.cassandra.service.paxos.PaxosPrepare.Response response, int version)
    Calculate serialized size of object without actually serializing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ResponseSerializer

      public ResponseSerializer()
  • Method Details

    • serialize

      public void serialize(org.apache.cassandra.service.paxos.PaxosPrepare.Response response, DataOutputPlus out, int version) throws IOException
      Description copied from interface: IVersionedAsymmetricSerializer
      Serialize the specified type into the specified DataOutputStream instance.
      Specified by:
      serialize in interface IVersionedAsymmetricSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response,org.apache.cassandra.service.paxos.PaxosPrepare.Response>
      Parameters:
      response - type that needs to be serialized
      out - DataOutput into which serialization needs to happen.
      version - protocol version
      Throws:
      IOException - if serialization fails
    • deserialize

      public org.apache.cassandra.service.paxos.PaxosPrepare.Response deserialize(DataInputPlus in, int version) throws IOException
      Description copied from interface: IVersionedAsymmetricSerializer
      Deserialize into the specified DataInputStream instance.
      Specified by:
      deserialize in interface IVersionedAsymmetricSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response,org.apache.cassandra.service.paxos.PaxosPrepare.Response>
      Parameters:
      in - DataInput from which deserialization needs to happen.
      version - protocol version
      Returns:
      the type that was deserialized
      Throws:
      IOException - if deserialization fails
    • serializedSize

      public long serializedSize(org.apache.cassandra.service.paxos.PaxosPrepare.Response response, int version)
      Description copied from interface: IVersionedAsymmetricSerializer
      Calculate serialized size of object without actually serializing.
      Specified by:
      serializedSize in interface IVersionedAsymmetricSerializer<org.apache.cassandra.service.paxos.PaxosPrepare.Response,org.apache.cassandra.service.paxos.PaxosPrepare.Response>
      Parameters:
      response - object to calculate serialized size
      version - protocol version
      Returns:
      serialized size of object t