public enum MessageType extends Enum<MessageType>
MessageConstants
Modifier and Type | Class and Description |
---|---|
static class |
MessageType.Flag |
Modifier and Type | Method and Description |
---|---|
static MessageType |
findById(int id)
Returns message type with a given id or
null if the message type is not known. |
static MessageType |
findByName(String name) |
static MessageType |
forAddSubscription(QDContract contract) |
static MessageType |
forData(QDContract contract) |
static MessageType |
forRemoveSubscription(QDContract contract) |
QDContract |
getContract() |
Collection<MessageType.Flag> |
getFlags() |
int |
getId()
Returns message identified in QTP protocol.
|
RecordMode |
getRecordMode() |
boolean |
hasRecords() |
boolean |
isData() |
boolean |
isHistory() |
boolean |
isHistorySubscriptionAdd() |
boolean |
isRMIAds() |
boolean |
isRMIChan() |
boolean |
isRMIReq() |
boolean |
isRMIRes() |
boolean |
isStream() |
boolean |
isSubscription() |
boolean |
isSubscriptionAdd() |
boolean |
isSubscriptionRemove() |
static MessageType |
valueOf(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 are declared.
|
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_ADVERTISE_SERVICES
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_RESPONSE
public static final MessageType RMI_RESULT
public static final MessageType RMI_ERROR
public static final MessageType TEXT_FORMAT
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Collection<MessageType.Flag> getFlags()
public int getId()
public boolean isData()
public boolean isSubscription()
public boolean isSubscriptionAdd()
public boolean isSubscriptionRemove()
public boolean hasRecords()
public boolean isStream()
public boolean isHistory()
public boolean isHistorySubscriptionAdd()
public boolean isRMIReq()
public boolean isRMIRes()
public boolean isRMIChan()
public boolean isRMIAds()
public QDContract getContract()
public RecordMode getRecordMode()
public static MessageType findById(int id)
null
if the message type is not known.public static MessageType findByName(String name)
public static MessageType forData(QDContract contract)
public static MessageType forAddSubscription(QDContract contract)
public static MessageType forRemoveSubscription(QDContract contract)
Copyright © 2002–2025 Devexperts LLC. All rights reserved.