public class MamdaBookAtomicListener extends java.lang.Object implements MamdaMsgListener, MamdaBookAtomicLevel, MamdaBookAtomicLevelEntry, MamdaBookAtomicGap
| Constructor and Description |
|---|
MamdaBookAtomicListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBookHandler(MamdaBookAtomicBookHandler handler) |
void |
addLevelEntryHandler(MamdaBookAtomicLevelEntryHandler handler) |
void |
addLevelHandler(MamdaBookAtomicLevelHandler handler) |
java.util.Iterator |
entryIterator()
Returns a
java.util.Iterator for all entries within this
level. |
com.wombat.mama.MamaDateTime |
getActivityTime()
Activity time.
|
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 |
getBeginGapSeqNum()
Beginning sequence number in a detected gap event.
|
long |
getEndGapSeqNum()
Ending sequence number in a detected gap event.
|
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
|
boolean |
getHasMarketOrders() |
com.wombat.mama.MamaDateTime |
getLineTime()
Get the line time of the update.
|
short |
getLineTimeFieldState() |
short |
getMsgQual() |
char |
getOrderType() |
java.lang.String |
getPartId()
Get the participant identifier.
|
short |
getPartIdFieldState() |
char |
getPriceLevelAction()
The action to apply to the orderbook for this price level.
|
long |
getPriceLevelActNumEntries() |
char |
getPriceLevelEntryAction()
Order book entry action to apply to the full order book.
|
java.lang.String |
getPriceLevelEntryId()
Order book entry Id.
|
char |
getPriceLevelEntryReason()
Reason for order book entry.
|
long |
getPriceLevelEntrySize()
Return the order book entry size
|
com.wombat.mama.MamaDateTime |
getPriceLevelEntryTime()
Return the time of order book entry update.
|
com.wombat.mama.MamaPrice |
getPriceLevelMamaPrice()
Return the MamaPrice for this price level.
|
long |
getPriceLevelNum()
Return at which position this level is within an update containing a
number of levels.
|
double |
getPriceLevelNumEntries()
Number of order book entries at current price level.
|
long |
getPriceLevelNumLevels()
Return the number of price levels in the order book update.
|
double |
getPriceLevelPrice()
Return the price for this price level.
|
char |
getPriceLevelSide()
Side of book at current price level.
|
double |
getPriceLevelSize()
Return the number of order entries comprising this price level.
|
long |
getPriceLevelSizeChange()
Aggregate size at current price level.
|
com.wombat.mama.MamaDateTime |
getPriceLevelTime()
Time of order book price level.
|
com.wombat.mama.MamaDateTime |
getSendTime()
Get the send time of the update.
|
short |
getSendTimeFieldState() |
com.wombat.mama.MamaDateTime |
getSrcTime()
Source time.
|
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
|
java.lang.String |
getSymbol()
Get the string symbol for the instrument.
|
short |
getSymbolFieldState() |
boolean |
isVisible() |
void |
onMsg(MamdaSubscription subscription,
com.wombat.mama.MamaMsg msg,
short msgType)
Invoked for each message received for the subscription to which
the Listener is registered.
|
void |
setOrderType(char orderType) |
void |
setPriceLevel(long priceLevel) |
void |
setProcessMarketOrders(boolean process) |
public java.util.Iterator entryIterator()
java.util.Iterator for all entries within this
level.
Price Level entries are represented by the
MamdaOrderBookEntry class.entryIterator in interface MamdaBookAtomicLevelentryIterator in interface MamdaBookAtomicLevelEntrypublic void addBookHandler(MamdaBookAtomicBookHandler handler)
public void addLevelHandler(MamdaBookAtomicLevelHandler handler)
public void addLevelEntryHandler(MamdaBookAtomicLevelEntryHandler handler)
public java.lang.String getSymbol()
MamdaBasicRecapgetSymbol in interface MamdaBasicRecappublic java.lang.String getPartId()
MamdaBasicRecapgetPartId in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getSrcTime()
MamdaBasicRecapgetSrcTime in interface MamdaBasicEventgetSrcTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getActivityTime()
MamdaBasicRecapgetActivityTime in interface MamdaBasicEventgetActivityTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getLineTime()
MamdaBasicRecapgetLineTime in interface MamdaBasicRecappublic com.wombat.mama.MamaDateTime getSendTime()
MamdaBasicRecapgetSendTime in interface MamdaBasicRecappublic short getMsgQual()
public long getEventSeqNum()
getEventSeqNum in interface MamdaBasicEventpublic com.wombat.mama.MamaDateTime getEventTime()
getEventTime in interface MamdaBasicEventpublic long getPriceLevelNumLevels()
MamdaBookAtomicLevelgetPriceLevelNumLevels in interface MamdaBookAtomicLevelpublic long getPriceLevelNum()
MamdaBookAtomicLevelgetPriceLevelNum in interface MamdaBookAtomicLevelpublic double getPriceLevelPrice()
MamdaBookAtomicLevelgetPriceLevelPrice in interface MamdaBookAtomicLevelgetPriceLevelPrice in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelPrice()public com.wombat.mama.MamaPrice getPriceLevelMamaPrice()
MamdaBookAtomicLevelgetPriceLevelMamaPrice in interface MamdaBookAtomicLevelgetPriceLevelMamaPrice in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelMamaPrice()public double getPriceLevelSize()
MamdaBookAtomicLevelgetPriceLevelSize in interface MamdaBookAtomicLevelgetPriceLevelSize in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelSize()public long getPriceLevelSizeChange()
MamdaBookAtomicLevelgetPriceLevelSizeChange in interface MamdaBookAtomicLevelpublic char getPriceLevelAction()
MamdaBookAtomicLevelgetPriceLevelAction in interface MamdaBookAtomicLevelgetPriceLevelAction in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelAction()public char getPriceLevelSide()
MamdaBookAtomicLevelgetPriceLevelSide in interface MamdaBookAtomicLevelgetPriceLevelSide in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelSide()public com.wombat.mama.MamaDateTime getPriceLevelTime()
MamdaBookAtomicLevelgetPriceLevelTime in interface MamdaBookAtomicLevelgetPriceLevelTime in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelTime()public double getPriceLevelNumEntries()
MamdaBookAtomicLevelgetPriceLevelNumEntries in interface MamdaBookAtomicLevelgetPriceLevelNumEntries in interface MamdaBookAtomicLevelEntryMamdaBookAtomicLevel.getPriceLevelNumEntries()public void setOrderType(char orderType)
public char getOrderType()
public boolean getHasMarketOrders()
public void setProcessMarketOrders(boolean process)
public long getPriceLevelActNumEntries()
getPriceLevelActNumEntries in interface MamdaBookAtomicLevelEntrypublic char getPriceLevelEntryAction()
MamdaBookAtomicLevelEntrygetPriceLevelEntryAction in interface MamdaBookAtomicLevelEntrypublic char getPriceLevelEntryReason()
MamdaBookAtomicLevelEntrygetPriceLevelEntryReason in interface MamdaBookAtomicLevelEntrypublic java.lang.String getPriceLevelEntryId()
MamdaBookAtomicLevelEntrygetPriceLevelEntryId in interface MamdaBookAtomicLevelEntrypublic long getPriceLevelEntrySize()
MamdaBookAtomicLevelEntrygetPriceLevelEntrySize in interface MamdaBookAtomicLevelEntrypublic com.wombat.mama.MamaDateTime getPriceLevelEntryTime()
MamdaBookAtomicLevelEntrygetPriceLevelEntryTime in interface MamdaBookAtomicLevelEntrypublic long getBeginGapSeqNum()
MamdaBookAtomicGapgetBeginGapSeqNum in interface MamdaBookAtomicGappublic long getEndGapSeqNum()
MamdaBookAtomicGapgetEndGapSeqNum in interface MamdaBookAtomicGappublic void setPriceLevel(long priceLevel)
public boolean isVisible()
isVisible in interface MamdaBookAtomicLevelEntrypublic short getSymbolFieldState()
getSymbolFieldState in interface MamdaBasicRecappublic short getPartIdFieldState()
getPartIdFieldState in interface MamdaBasicRecappublic short getSrcTimeFieldState()
MamdaBasicEventgetSrcTimeFieldState in interface MamdaBasicEventgetSrcTimeFieldState in interface MamdaBasicRecappublic short getActivityTimeFieldState()
MamdaBasicEventgetActivityTimeFieldState in interface MamdaBasicEventgetActivityTimeFieldState in interface MamdaBasicRecappublic short getLineTimeFieldState()
getLineTimeFieldState in interface MamdaBasicRecappublic short getSendTimeFieldState()
getSendTimeFieldState in interface MamdaBasicRecappublic short getEventTimeFieldState()
MamdaBasicEventgetEventTimeFieldState in interface MamdaBasicEventpublic short getEventSeqNumFieldState()
MamdaBasicEventgetEventSeqNumFieldState in interface MamdaBasicEventpublic void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
MamdaMsgListeneronMsg 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.Copyright 2007 Wombat Financial Software, Inc.