public enum HandlerState extends Enum<HandlerState>
Enum Constant and Description |
---|
BOOKS_RESYNCHRONIZATION_FINISHED
The latest books state is restored.
|
BOOKS_RESYNCHRONIZATION_STARTED
The correct books state is lost.
|
SECURITY_DEFINITIONS_RECOVERY_FINISHED
All instruments are received.
|
SECURITY_DEFINITIONS_RECOVERY_STARTED
Subscribed to Instrument Definition stream.
|
STARTED
Handler started but feeds stopped.
|
STOPPED
CmeMdHandler is stopped.
|
TCP_REPLAY_FINISHED
TCP Replays is finished.
|
TCP_REPLAY_STARTED
TCP Replays is started.
|
Modifier and Type | Method and Description |
---|---|
static HandlerState |
forValue(int value)
Convert int to enumeration.
|
int |
getValue()
Get int value.
|
static HandlerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HandlerState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlerState STOPPED
public static final HandlerState SECURITY_DEFINITIONS_RECOVERY_STARTED
public static final HandlerState SECURITY_DEFINITIONS_RECOVERY_FINISHED
public static final HandlerState BOOKS_RESYNCHRONIZATION_STARTED
CmeMdHandler switches to this state when it joins the market and the initial books state is built from MarketDataSnapshotFullRefresh (W) messages or when the TcpReplay is not used and the message sequence number gap is detected, so the book state should be re-built from MarketDataSnapshotFullRefresh (W) messages again.
It should be assumed at this point that all books maintained in the CmeMdHandler may no longer have the correct, latest state maintained by CME, so they are cleared.
public static final HandlerState BOOKS_RESYNCHRONIZATION_FINISHED
CmeMdHandler switches to this state when the the latest books state is restored from MarketDataSnapshotFullRefresh (W() messages (all snapshot data is retrieved).
It should be assumed at this point that all books maintained in the CmeMdHandler have the correct, latest state maintained by CME.
public static final HandlerState TCP_REPLAY_STARTED
public static final HandlerState TCP_REPLAY_FINISHED
public static final HandlerState STARTED
public static HandlerState[] values()
for (HandlerState c : HandlerState.values()) System.out.println(c);
public static HandlerState 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 int getValue()
public static HandlerState forValue(int value)
value
- int value.Copyright © 2010–2020 Onix Solutions. All rights reserved.