Class ClusterTransmissionHeader

  • All Implemented Interfaces:
    org.jgroups.Constructable<org.jgroups.Header>, org.jgroups.util.SizeStreamable, org.jgroups.util.Streamable

    public class ClusterTransmissionHeader
    extends org.jgroups.Header
    Header used to store some control information about a IClusterTransmission. Some data available in the IClusterTransmission is also stored in this header to prevent the need to deserialize the message to read them.
    Since:
    4.1.0
    Version:
    $Revision: 23112 $ $Date: 2019-09-06 19:00:02 -0300 (Fri, 06 Sep 2019) $
    • Constructor Detail

      • ClusterTransmissionHeader

        public ClusterTransmissionHeader()
        Creates a header with default values. Intended for use by deserialization process.
        Since:
        4.1.0
      • ClusterTransmissionHeader

        public ClusterTransmissionHeader​(IClusterTransmission clusterTransmission)
        Creates a header initialized according to the given IClusterTransmission.
        Parameters:
        clusterTransmission - the cluster message.
        Since:
        4.1.0
    • Method Detail

      • getTransmissionId

        public String getTransmissionId()
        Returns the unique identifier of the transmission for which this header belongs.
        Returns:
        the unique identifier of the transmission.
        Since:
        4.1.0
      • getFlags

        public byte getFlags()
        Returns the flags set in this header.
        Returns:
        a value that is an OR combination of the active FLAG_* constants.
        Since:
        4.1.0
      • getTransmissionOrder

        public long getTransmissionOrder()
        Returns the transmission order generated for the corresponding transmission.
        Returns:
        the transmission order generated for the corresponding transmission.
        Since:
        4.1.0
      • size

        public int size()
        Overrides:
        size in class org.jgroups.Header
      • toString

        public String toString()
        Overrides:
        toString in class org.jgroups.Header
      • serializedSize

        public int serializedSize()
      • create

        public java.util.function.Supplier<? extends org.jgroups.Header> create()
      • getMagicId

        public short getMagicId()
        Specified by:
        getMagicId in class org.jgroups.Header