|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<MessageType>
com.devexperts.qd.qtp.MessageType
public enum MessageType
Type of QTP message.
MessageConstants
Nested Class Summary | |
---|---|
static class |
MessageType.Flag
|
Method Summary | |
---|---|
static MessageType |
findById(int id)
Returns message type with a given id or null if the message type is not known. |
static MessageType |
findByName(java.lang.String name)
|
static MessageType |
forAddSubscription(QDContract contract)
|
static MessageType |
forData(QDContract contract)
|
static MessageType |
forRemoveSubscription(QDContract contract)
|
QDContract |
getContract()
|
java.util.Collection<MessageType.Flag> |
getFlags()
|
int |
getId()
Returns message identified in QTP protocol. |
boolean |
isData()
|
boolean |
isHistory()
|
boolean |
isRMI()
|
boolean |
isStream()
|
boolean |
isSubscription()
|
boolean |
isSubscriptionAdd()
|
boolean |
isSubscriptionRemove()
|
static MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final MessageType HEARTBEAT
public static final MessageType DESCRIBE_PROTOCOL
public static final MessageType DESCRIBE_RECORDS
public static final MessageType DESCRIBE_RESERVED
public static final MessageType PART
public static final MessageType RAW_DATA
public static final MessageType TICKER_DATA
public static final MessageType TICKER_ADD_SUBSCRIPTION
public static final MessageType TICKER_REMOVE_SUBSCRIPTION
public static final MessageType STREAM_DATA
public static final MessageType STREAM_ADD_SUBSCRIPTION
public static final MessageType STREAM_REMOVE_SUBSCRIPTION
public static final MessageType HISTORY_DATA
public static final MessageType HISTORY_ADD_SUBSCRIPTION
public static final MessageType HISTORY_REMOVE_SUBSCRIPTION
public static final MessageType RMI_DESCRIBE_SUBJECT
public static final MessageType RMI_DESCRIBE_OPERATION
public static final MessageType RMI_REQUEST
public static final MessageType RMI_CANCEL
public static final MessageType RMI_RESULT
public static final MessageType RMI_ERROR
public static final MessageType TEXT_FORMAT_SPECIAL
Method Detail |
---|
public static final MessageType[] values()
for(MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic java.util.Collection<MessageType.Flag> getFlags()
public int getId()
public boolean isData()
public boolean isSubscription()
public boolean isSubscriptionAdd()
public boolean isSubscriptionRemove()
public boolean isStream()
public boolean isHistory()
public boolean isRMI()
public QDContract getContract()
public static MessageType findById(int id)
null
if the message type is not known.
public static MessageType findByName(java.lang.String name)
public static MessageType forData(QDContract contract)
public static MessageType forAddSubscription(QDContract contract)
public static MessageType forRemoveSubscription(QDContract contract)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |