public class LegTransactionID extends java.lang.Object implements LegUsageID
Leg
Constructor and Description |
---|
LegTransactionID(java.io.DataInput in) |
LegTransactionID(java.lang.String legName,
long cseq)
Create a new
LegTransactionID |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static LegTransactionID |
fromString(java.lang.String s)
Get a
LegTransactionID 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 ID
|
int |
hashCode() |
void |
toStream(java.io.DataOutput out) |
java.lang.String |
toString() |
public LegTransactionID(java.lang.String legName, long cseq)
LegTransactionID
legName
- Leg Name associated with this IDcseq
- the cseq sequence number associated with this IDpublic LegTransactionID(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void toStream(java.io.DataOutput out) throws java.io.IOException
toStream
in interface com.opencloud.util.FastSerializable
java.io.IOException
public java.lang.String getLegName()
getLegName
in interface LegUsageID
public long getCseq()
public static LegTransactionID fromString(java.lang.String s)
LegTransactionID
from a string.s
- a string in the form <leg-name>/<cseq>
LegTransactionID
instancepublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.