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(ProtoByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Subscription rhs) |
void |
deserialize(ProtoByteBuffer buffer) |
protected void |
dump(TextWriter wr) |
boolean |
equals(java.lang.Object rhs) |
int |
getMsgType() |
int |
hashCode() |
void |
serialize(ProtoByteBuffer buffer) |
java.lang.String |
toString() |
public APIType apiType
public int feedID
public int marketID
public Subscription()
protected Subscription(ProtoByteBuffer buffer)
public Subscription(APIType apiType, int feedID, int marketID)
public int getMsgType()
getMsgType in interface IMessagepublic 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 deserialize(ProtoByteBuffer buffer)
deserialize in interface IMessagepublic void serialize(ProtoByteBuffer buffer)
public java.lang.String toString()
protected void dump(TextWriter wr)