Package com.opencloud.sentinel.util
Class LegTransactionID
- java.lang.Object
-
- com.opencloud.sentinel.util.LegTransactionID
-
- All Implemented Interfaces:
LegUsageID,com.opencloud.util.FastSerializable
public class LegTransactionID extends java.lang.Object implements LegUsageID
Represents a SIP transaction on a particularLeg
-
-
Constructor Summary
Constructors Constructor Description LegTransactionID(java.io.DataInput in)LegTransactionID(java.lang.String legName, long cseq)Create a newLegTransactionID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static LegTransactionIDfromString(java.lang.String s)Get aLegTransactionIDfrom a string.longgetCseq()Returns the cseq sequence number associated with this ID.java.lang.StringgetLegName()Returns the Leg Name associated with this IDinthashCode()voidtoStream(java.io.DataOutput out)java.lang.StringtoString()
-
-
-
Constructor Detail
-
LegTransactionID
public LegTransactionID(java.lang.String legName, long cseq)Create a newLegTransactionID- Parameters:
legName- Leg Name associated with this IDcseq- 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:
toStreamin interfacecom.opencloud.util.FastSerializable- Throws:
java.io.IOException
-
getLegName
public java.lang.String getLegName()
Returns the Leg Name associated with this ID- Specified by:
getLegNamein interfaceLegUsageID- Returns:
- Leg Name.
-
getCseq
public long getCseq()
Returns the cseq sequence number associated with this ID.- Returns:
- the cseq sequence number.
-
fromString
public static LegTransactionID fromString(java.lang.String s)
Get aLegTransactionIDfrom a string.- Parameters:
s- a string in the form<leg-name>/<cseq>- Returns:
- a new
LegTransactionIDinstance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-