Class SessionData

  • All Implemented Interfaces:
    java.io.Externalizable , java.io.Serializable , java.lang.Comparable , org.apache.avro.generic.GenericContainer , org.apache.avro.generic.GenericRecord , org.apache.avro.generic.IndexedRecord , org.apache.avro.specific.SpecificRecord

    
    public class SessionData
    extends SpecificRecordBase implements SpecificRecord
                        

    Data message sent between parties containing a serialized payload

    • Constructor Detail

      • SessionData

        SessionData()
        Default constructor.
      • SessionData

        SessionData(Object payload, SessionInit sessionInit)
        All-args constructor.
        Parameters:
        payload - The new value for payload
        sessionInit - Contains information that can be used to start an initiated flow, piggybacked on initial data messages.
    • Method Detail

      • setPayload

         void setPayload(Object value)

        Sets the value of the 'payload' field.

        Parameters:
        value - the value to set.
      • setSessionInit

         void setSessionInit(SessionInit value)

        Sets the value of the 'sessionInit' field. Contains information that can be used to start an initiated flow, piggybacked on initial data messages. Will be null for messages sent to the initiator. Will be null when initiated party is confirmed to be present to ensure out of order messages that arrive first contain this info.

        Parameters:
        value - the value to set.
      • getEncoder

         static BinaryMessageEncoder<SessionData> getEncoder()

        Return the BinaryMessageEncoder instance used by this class.

      • getDecoder

         static BinaryMessageDecoder<SessionData> getDecoder()

        Return the BinaryMessageDecoder instance used by this class.

      • createDecoder

         static BinaryMessageDecoder<SessionData> createDecoder(SchemaStore resolver)

        Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.

        Parameters:
        resolver - a SchemaStore used to find schemas by fingerprint
      • fromByteBuffer

         static SessionData fromByteBuffer(ByteBuffer b)

        Deserializes a SessionData from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class
      • newBuilder

         static SessionData.Builder newBuilder(SessionData other)

        Creates a new SessionData RecordBuilder by copying an existing SessionData instance.

        Parameters:
        other - The existing instance to copy.