Class LegTransactionID

  • All Implemented Interfaces:
    LegUsageID, com.opencloud.util.FastSerializable

    public class LegTransactionID
    extends java.lang.Object
    implements LegUsageID
    Represents a SIP transaction on a particular Leg
    • Constructor Detail

      • LegTransactionID

        public LegTransactionID​(java.lang.String legName,
                                long cseq)
        Create a new LegTransactionID
        Parameters:
        legName - Leg Name associated with this ID
        cseq - the cseq sequence number associated with this ID
      • LegTransactionID

        public LegTransactionID​(java.io.DataInput in)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • toStream

        public void toStream​(java.io.DataOutput out)
                      throws java.io.IOException
        Specified by:
        toStream in interface com.opencloud.util.FastSerializable
        Throws:
        java.io.IOException
      • getLegName

        public java.lang.String getLegName()
        Returns the Leg Name associated with this ID
        Specified by:
        getLegName in interface LegUsageID
        Returns:
        Leg Name.
      • getCseq

        public long getCseq()
        Returns the cseq sequence number associated with this ID.
        Returns:
        the cseq sequence number.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object