Class LegSubscriptionID

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

    public final class LegSubscriptionID
    extends java.lang.Object
    implements LegUsageID
    Represents a subscribed SIP event on a particular Leg
    • Constructor Detail

      • LegSubscriptionID

        public LegSubscriptionID​(java.io.DataInput in)
                          throws java.io.IOException
        Constructs a new LegSubscriptionID object by deserializing data from a stream that was written by toStream(java.io.DataOutput).
        Parameters:
        in - input stream.
        Throws:
        java.io.IOException
    • Method Detail

      • toStream

        public void toStream​(java.io.DataOutput out)
                      throws java.io.IOException
        Serializes this object to a stream in a form suitable for reading by LegSubscriptionID(java.io.DataInput).
        Specified by:
        toStream in interface com.opencloud.util.FastSerializable
        Parameters:
        out - the stream to write to
        Throws:
        java.io.IOException - if an I/O error occurs
      • getLegName

        public java.lang.String getLegName()
        Returns the Leg Name associated with this ID
        Specified by:
        getLegName in interface LegUsageID
        Returns:
        Leg Name.
      • 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
      • toString

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