org.otfeed.protocol
Enum CommandEnum
java.lang.Object
java.lang.Enum<CommandEnum>
org.otfeed.protocol.CommandEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CommandEnum>
public enum CommandEnum
- extends java.lang.Enum<CommandEnum>
Enumerates command types (request and response types).
Method Summary |
static CommandEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CommandEnum[] |
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 |
LOGIN
public static final CommandEnum LOGIN
LOGOUT
public static final CommandEnum LOGOUT
REQUEST_TICK_STREAM
public static final CommandEnum REQUEST_TICK_STREAM
REQUEST_TICK_STREAM_EX
public static final CommandEnum REQUEST_TICK_STREAM_EX
CANCEL_TICK_STREAM
public static final CommandEnum CANCEL_TICK_STREAM
REQUEST_HIST_DATA
public static final CommandEnum REQUEST_HIST_DATA
REQUEST_HIST_TICKS
public static final CommandEnum REQUEST_HIST_TICKS
CANCEL_HIST_DATA
public static final CommandEnum CANCEL_HIST_DATA
REQUEST_LIST_EXCHANGES
public static final CommandEnum REQUEST_LIST_EXCHANGES
REQUEST_LIST_SYMBOLS
public static final CommandEnum REQUEST_LIST_SYMBOLS
HEARTBEAT
public static final CommandEnum HEARTBEAT
REQUEST_EQUITY_INIT
public static final CommandEnum REQUEST_EQUITY_INIT
REQUEST_OPTION_CHAIN
public static final CommandEnum REQUEST_OPTION_CHAIN
REQUEST_OPTION_CHAIN_EX
public static final CommandEnum REQUEST_OPTION_CHAIN_EX
CANCEL_OPTION_CHAIN
public static final CommandEnum CANCEL_OPTION_CHAIN
REQUEST_BOOK_STREAM
public static final CommandEnum REQUEST_BOOK_STREAM
REQUEST_BOOK_STREAM_EX
public static final CommandEnum REQUEST_BOOK_STREAM_EX
CANCEL_BOOK_STREAM
public static final CommandEnum CANCEL_BOOK_STREAM
REQUEST_SPLITS
public static final CommandEnum REQUEST_SPLITS
REQUEST_DIVIDENDS
public static final CommandEnum REQUEST_DIVIDENDS
REQUEST_HIST_BOOKS
public static final CommandEnum REQUEST_HIST_BOOKS
REQUEST_OPTION_CHAIN_U
public static final CommandEnum REQUEST_OPTION_CHAIN_U
REQUEST_OPTION_INIT
public static final CommandEnum REQUEST_OPTION_INIT
REQUEST_LIST_SYMBOLS_EX
public static final CommandEnum REQUEST_LIST_SYMBOLS_EX
REQUEST_TICK_SNAPSHOT
public static final CommandEnum REQUEST_TICK_SNAPSHOT
REQUEST_OPTION_CHAIN_SNAPSHOT
public static final CommandEnum REQUEST_OPTION_CHAIN_SNAPSHOT
code
public final int code
decoder
public static final java.util.Map<java.lang.Integer,CommandEnum> decoder
values
public static final CommandEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CommandEnum c : CommandEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CommandEnum valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
Copyright © 2007 Mike Kroutikov. All Rights Reserved.