public class MamdaOptionChainListener extends java.lang.Object implements MamdaMsgListener, MamdaOptionSeriesUpdate
| Modifier and Type | Field and Description |
|---|---|
static char |
ACTION_ADD |
static char |
ACTION_DELETE |
static char |
ACTION_UNKNOWN |
| Constructor and Description |
|---|
MamdaOptionChainListener(MamdaOptionChain chain)
Create a specialized option chain listener.
|
MamdaOptionChainListener(java.lang.String underlyingSymbol)
Create a specialized option chain listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(MamdaOptionChainHandler handler)
Add a specialized option chain handler.
|
com.wombat.mama.MamaDateTime |
getActivityTime() |
short |
getActivityTimeFieldState()
return Activity time Field State
MODIFIED (2) value indicates the fied was updated in last tick
NOT MODIFIED (1) value indicate that there was no change in the last tick
NOT_INITIALISED (0) value indicates that the field has never been updated
|
long |
getEventSeqNum() |
short |
getEventSeqNumFieldState()
return source sequence number Field State
MODIFIED (2) value indicates the fied was updated in last tick
NOT MODIFIED (1) value indicate that there was no change in the last tick
NOT_INITIALISED (0) value indicates that the field has never been updated
|
com.wombat.mama.MamaDateTime |
getEventTime() |
short |
getEventTimeFieldState()
return event time Field State
MODIFIED (2) value indicates the fied was updated in last tick
NOT MODIFIED (1) value indicate that there was no change in the last tick
NOT_INITIALISED (0) value indicates that the field has never been updated
|
char |
getOptionAction()
Get the most recent action.
|
MamdaOptionChain |
getOptionChain()
Return the option chain associated with this listener.
|
MamdaOptionContract |
getOptionContract()
Get the option contract to which the most recent event applies.
|
com.wombat.mama.MamaDateTime |
getSrcTime() |
short |
getSrcTimeFieldState()
return Source time Field State
MODIFIED (2) value indicates the fied was updated in last tick
NOT MODIFIED (1) value indicate that there was no change in the last tick
NOT_INITIALISED (0) value indicates that the field has never been updated
|
void |
onMsg(MamdaSubscription subscription,
com.wombat.mama.MamaMsg msg,
short msgType)
Implementation of MamdaListener interface.
|
public static final char ACTION_UNKNOWN
public static final char ACTION_ADD
public static final char ACTION_DELETE
public MamdaOptionChainListener(java.lang.String underlyingSymbol)
public MamdaOptionChainListener(MamdaOptionChain chain)
public void addHandler(MamdaOptionChainHandler handler)
public MamdaOptionChain getOptionChain()
public void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
onMsg in interface MamdaMsgListenersubscription - The MamdaSubscription to which this listener was
registered.msg - The MamaMsg received by the underlying MAMA API and which
resulted in this callback being invoked.msgType - The message type. e.g. INITIAL, RECAP, UPDATE etc.public com.wombat.mama.MamaDateTime getSrcTime()
getSrcTime in interface MamdaBasicEventpublic com.wombat.mama.MamaDateTime getActivityTime()
getActivityTime in interface MamdaBasicEventpublic long getEventSeqNum()
getEventSeqNum in interface MamdaBasicEventpublic com.wombat.mama.MamaDateTime getEventTime()
getEventTime in interface MamdaBasicEventpublic short getSrcTimeFieldState()
MamdaBasicEventgetSrcTimeFieldState in interface MamdaBasicEventpublic short getActivityTimeFieldState()
MamdaBasicEventgetActivityTimeFieldState in interface MamdaBasicEventpublic short getEventSeqNumFieldState()
MamdaBasicEventgetEventSeqNumFieldState in interface MamdaBasicEventpublic short getEventTimeFieldState()
MamdaBasicEventgetEventTimeFieldState in interface MamdaBasicEventpublic MamdaOptionContract getOptionContract()
MamdaOptionSeriesUpdategetOptionContract in interface MamdaOptionSeriesUpdatepublic char getOptionAction()
MamdaOptionSeriesUpdategetOptionAction in interface MamdaOptionSeriesUpdateCopyright 2007 Wombat Financial Software, Inc.