public final class Subscription extends java.lang.Object implements IMessage, java.lang.Comparable<Subscription>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
APIType |
apiType
The type of subscription: market data or trading.
|
int |
feedID
A unique identifier for the feed.
|
int |
marketID
The market's unique ID on this feed (only used for
MARKETDATA).
|
| Modifier | Constructor and Description |
|---|---|
|
Subscription() |
|
Subscription(APIType apiType,
int feedID,
int marketID) |
protected |
Subscription(ZeroGCProtoByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Subscription rhs) |
void |
deepCopy(Subscription src) |
void |
deserializeZeroGC(ZeroGCProtoByteBuffer buffer) |
protected void |
dump(TextWriter wr) |
boolean |
equals(java.lang.Object rhs) |
int |
getMsgType() |
int |
hashCode() |
void |
serialize(ZeroGCProtoByteBuffer buffer) |
java.lang.String |
toString() |
public APIType apiType
public int feedID
public int marketID
public Subscription()
protected Subscription(ZeroGCProtoByteBuffer buffer)
public Subscription(APIType apiType, int feedID, int marketID)
public int getMsgType()
getMsgType in interface IMessagepublic void deepCopy(Subscription src)
public boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic int compareTo(Subscription rhs)
compareTo in interface java.lang.Comparable<Subscription>public int hashCode()
hashCode in class java.lang.Objectpublic void deserializeZeroGC(ZeroGCProtoByteBuffer buffer)
deserializeZeroGC in interface IMessagepublic void serialize(ZeroGCProtoByteBuffer buffer)
public java.lang.String toString()
protected void dump(TextWriter wr)