public final class LegSubscriptionID extends java.lang.Object implements LegUsageID
Leg
Constructor and Description |
---|
LegSubscriptionID(java.io.DataInput in)
Constructs a new LegSubscriptionID object by deserializing data from a stream that was written by
toStream(DataOutput) . |
LegSubscriptionID(java.lang.String legName,
SubscribedEventID eventID)
Create a new
LegSubscriptionID |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static LegSubscriptionID |
fromString(java.lang.String s)
Get a
LegSubscriptionID from a string. |
SubscribedEventID |
getEventID()
Returns the
SubscribedEventID associated with this ID. |
java.lang.String |
getLegName()
Returns the Leg Name associated with this ID
|
int |
hashCode() |
void |
toStream(java.io.DataOutput out)
Serializes this object to a stream in a form suitable for reading by
LegSubscriptionID(DataInput) . |
java.lang.String |
toString() |
public LegSubscriptionID(java.lang.String legName, SubscribedEventID eventID)
LegSubscriptionID
legName
- Leg Name associated with this IDeventID
- the SubscribedEventID
associated with this IDpublic LegSubscriptionID(java.io.DataInput in) throws java.io.IOException
toStream(DataOutput)
.in
- input stream.java.io.IOException
public static LegSubscriptionID fromString(java.lang.String s)
LegSubscriptionID
from a string.s
- a string in the form <leg-name>/<event-name>[;id=<id>]
LegSubscriptionID
instancepublic void toStream(java.io.DataOutput out) throws java.io.IOException
LegSubscriptionID(DataInput)
.toStream
in interface com.opencloud.util.FastSerializable
out
- the stream to write tojava.io.IOException
- if an I/O error occurspublic java.lang.String getLegName()
getLegName
in interface LegUsageID
public SubscribedEventID getEventID()
SubscribedEventID
associated with this ID.SubscribedEventID
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © OpenCloud. All Rights Reserved.