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 boolean
equals(java.lang.Object obj)
static LegTransactionID
fromString(java.lang.String s)
Get aLegTransactionID
from a string.long
getCseq()
Returns the cseq sequence number associated with this ID.java.lang.String
getLegName()
Returns the Leg Name associated with this IDint
hashCode()
void
toStream(java.io.DataOutput out)
java.lang.String
toString()
-
-
-
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:
toStream
in interfacecom.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 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 aLegTransactionID
from a string.- Parameters:
s
- a string in the form<leg-name>/<cseq>
- Returns:
- a new
LegTransactionID
instance
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-