Package com.wombat.mamda
Class MamdaSecurityStatusListener
- java.lang.Object
-
- com.wombat.mamda.MamdaSecurityStatusListener
-
- All Implemented Interfaces:
MamdaBasicEvent
,MamdaBasicRecap
,MamdaMsgListener
,MamdaSecurityStatusRecap
,MamdaSecurityStatusUpdate
public class MamdaSecurityStatusListener extends java.lang.Object implements MamdaMsgListener, MamdaSecurityStatusRecap, MamdaSecurityStatusUpdate
MamdaSecurityStatusListener is a class that specializes in handling security status updates. Developers provide their own implementation of the MamdaSecurityStatusHandler interface and will be delivered notifications for security status updates. Note: The MamdaSecurityStatusListener class caches some field values. Among other reasons, caching of these fields makes it possible to provide complete certain callbacks, even when the publisher (e.g., feed handler) is only publishing deltas containing modified fields.
-
-
Constructor Summary
Constructors Constructor Description MamdaSecurityStatusListener()
Create a specialized trade listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHandler(MamdaSecurityStatusHandler handler)
Add a specialized trade handler.void
clearCache(com.wombat.mamda.MamdaSecurityStatusListener.MamdaSecurityStatusCache cache)
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 updatedlong
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 updatedcom.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 updatedjava.lang.String
getFieldAsString(com.wombat.mama.MamaMsgField field)
com.wombat.mama.MamaDateTime
getLineTime()
Get the line time of the update.short
getLineTimeFieldState()
char
getLuldIndicator()
short
getLuldIndicatorFieldState()
com.wombat.mama.MamaDateTime
getLuldTime()
short
getLuldTimeFieldState()
java.lang.String
getPartId()
Get the participant identifier.short
getPartIdFieldState()
java.lang.String
getReason()
Unnormalized (feed-specific) reason associated with the current status of the security (e.g.short
getReasonFieldState()
long
getSecurityStatus()
short
getSecurityStatusEnum()
NYSE Technologies normalised security status.short
getSecurityStatusEnumFieldState()
short
getSecurityStatusFieldState()
java.lang.String
getSecurityStatusOrigStr()
short
getSecurityStatusOrigStrFieldState()
long
getSecurityStatusQualifier()
short
getSecurityStatusQualifierEnum()
Security status qualifier.short
getSecurityStatusQualifierEnumFieldState()
short
getSecurityStatusQualifierFieldState()
java.lang.String
getSecurityStatusQualifierStr()
Security status qualifier.short
getSecurityStatusQualifierStrFieldState()
java.lang.String
getSecurityStatusStr()
NYSE Technologies normalised security status.short
getSecurityStatusStrFieldState()
com.wombat.mama.MamaDateTime
getSendTime()
Get the send time of the update.short
getSendTimeFieldState()
char
getShortSaleCircuitBreaker()
getShortSaleCircuitBreaker Returns the ShortSaleCircuitBreakershort
getShortSaleCircuitBreakerFieldState()
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 updatedjava.lang.String
getSymbol()
Get the string symbol for the instrument.short
getSymbolFieldState()
void
onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
Implementation of MamdaListener interface.
-
-
-
Method Detail
-
addHandler
public void addHandler(MamdaSecurityStatusHandler handler)
Add a specialized trade handler. Currently, only one handler can (and must) be registered.
-
clearCache
public void clearCache(com.wombat.mamda.MamdaSecurityStatusListener.MamdaSecurityStatusCache cache)
-
getSrcTime
public com.wombat.mama.MamaDateTime getSrcTime()
Description copied from interface:MamdaBasicRecap
Source time. Typically, the exchange generated feed- Specified by:
getSrcTime
in interfaceMamdaBasicEvent
- Specified by:
getSrcTime
in interfaceMamdaBasicRecap
- Returns:
- Source time. Typically, the exchange generated feed time stamp. This is often the same as the "event time", because many feeds do not distinguish between the actual event time and when the exchange sent the message.
-
getActivityTime
public com.wombat.mama.MamaDateTime getActivityTime()
Description copied from interface:MamdaBasicRecap
Activity time. A feed handler generated time stamp representing when the data item was last updated.- Specified by:
getActivityTime
in interfaceMamdaBasicEvent
- Specified by:
getActivityTime
in interfaceMamdaBasicRecap
- Returns:
- Activity time. A feed handler generated time stamp representing when the data item was last updated.
-
getSendTime
public com.wombat.mama.MamaDateTime getSendTime()
Description copied from interface:MamdaBasicRecap
Get the send time of the update.- Specified by:
getSendTime
in interfaceMamdaBasicRecap
- Returns:
- Send time. A feed handler (or similar publisher) time stamp representing the time that such publisher sent the current message. The difference between the line time and send time is the latency within the feed handler itself. Also, if clocks are properly synchronized then the difference between the send time and current time is the latency within the market data distribution framework (i.e. MAMA and the underlying middleware).
-
getLineTime
public com.wombat.mama.MamaDateTime getLineTime()
Description copied from interface:MamdaBasicRecap
Get the line time of the update.- Specified by:
getLineTime
in interfaceMamdaBasicRecap
- Returns:
- Line time. A feed handler (or similar publisher) time stamp representing the time that such publisher received the update message pertaining to the event. If clocks are properly synchronized and the source time (see above) is accurate enough, then the difference between the source time and line time is the latency between the data source and the feed handler.
-
getEventSeqNum
public long getEventSeqNum()
- Specified by:
getEventSeqNum
in interfaceMamdaBasicEvent
- Returns:
- Source sequence number. The exchange generated sequence number.
-
getEventTime
public com.wombat.mama.MamaDateTime getEventTime()
- Specified by:
getEventTime
in interfaceMamdaBasicEvent
- Returns:
- Event time. Typically, when the event actually occurred. This is often the same as the "source time", because many feeds do not distinguish between the actual event time and when the exchange sent the message.
-
getPartId
public java.lang.String getPartId()
Description copied from interface:MamdaBasicRecap
Get the participant identifier.- Specified by:
getPartId
in interfaceMamdaBasicRecap
- Returns:
- Participant ID. This may be an exchange identifier, a market maker ID, etc., or NULL (if this is not related to any specific participant).
-
getSymbol
public java.lang.String getSymbol()
Description copied from interface:MamdaBasicRecap
Get the string symbol for the instrument.- Specified by:
getSymbol
in interfaceMamdaBasicRecap
- Returns:
- Symbol. This is the "well-known" symbol for the security, including any symbology mapping performed by the publisher.
-
getSecurityStatus
public long getSecurityStatus()
- Specified by:
getSecurityStatus
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatus
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatus()
-
getSecurityStatusQualifier
public long getSecurityStatusQualifier()
- Specified by:
getSecurityStatusQualifier
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifier
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusQualifier()
-
getShortSaleCircuitBreaker
public char getShortSaleCircuitBreaker()
Description copied from interface:MamdaSecurityStatusRecap
getShortSaleCircuitBreaker Returns the ShortSaleCircuitBreaker- Specified by:
getShortSaleCircuitBreaker
in interfaceMamdaSecurityStatusRecap
- Specified by:
getShortSaleCircuitBreaker
in interfaceMamdaSecurityStatusUpdate
- Returns:
- ShortSaleCircuitBreaker
- See Also:
MamdaSecurityStatusUpdate.getShortSaleCircuitBreaker()
-
getSecurityStatusEnum
public short getSecurityStatusEnum()
Description copied from interface:MamdaSecurityStatusUpdate
NYSE Technologies normalised security status. See getSecurityStatusOrig for the original exchange value.- MamdaSecurityStatus.SECURITY_STATUS_NONE : No security status is known/available for this security.
- MamdaSecurityStatus.SECURITY_STATUS_NORMAL : Security is open for normal quoting and trading
- MamdaSecurityStatus.SECURITY_STATUS_CLOSED : Security is closed (usually before or after market open)
- MamdaSecurityStatus.SECURITY_STATUS_HALTED : Security has been halted by exchange.
- MamdaSecurityStatus.SECURITY_STATUS_NOT_EXIST : Security does not currently exist in cache (but it might in the future).
- MamdaSecurityStatus.SECURITY_STATUS_DELETED : Security has been deleted (e.g., merger, expiration, etc.)
- MamdaSecurityStatus.SECURITY_STATUS_AUCTION : Security has gone into auction.
- MamdaSecurityStatus.SECURTTY_STATUS_CROSSING : Security crossing.
- MamdaSecurityStatus.SECURITY_STATUS_UNKNOWN : Security status not currently known.
- Specified by:
getSecurityStatusEnum
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusEnum
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusEnum()
-
getSecurityStatusQualifierEnum
public short getSecurityStatusQualifierEnum()
Description copied from interface:MamdaSecurityStatusUpdate
Security status qualifier.- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_NONE : No security status qualifier is known/available for this security.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_EXCUSED : An Excused withdrawal from the market.
- MamdaSecrutiyStatusQual.SECURITY_STATUS_QAUL_WITHDRAWN : Non-excused withdrawal by the market maker.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_SUSPENDED : Suspended Trading
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_RESUME : Resume trading/quoting after halt.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_QUOTE_RESUME : Resume quoting after halt. NASDAQ distinguishes between resumption of quoting versus trading, although these appear to always occur one after the other.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_TRADE_RESUME : Resume trading after halt. NASDAQ distinguishes between resumption of quoting versus trading, although these appear to always occur one after the other.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_RESUME_TIME : When the security is expected to resume trading.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_MKT_IMB_BUY : Market Imbalance - Buy. A 50,000 share or more excess of market orders to buy over market orders to sell as of 9:00am on expiration days. A MktImbBuy implies an ordinary order imbalance (OrdImbBuy).
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_MKT_IMB_SELL : Market Imbalance - Sell. A 50,000 share or more excess of market orders to sell over market orders to buy as of 9:00am on expiration days. A MktImbSell implies an ordinary order imbalance (OrdImbSell).
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_NO_MKT_IMB : No Market Imbalance. Indicates that the imbalance of market orders for a security is less than 50,000 shares as of 9:00am on expiration days.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_MOC_IMB_BUY : Market On Close Imbalance - Buy. An excess of 50,000 share or more of MOC orders to buy over MOC orders to sell (including MOC sell plus and MOC sell short orders). A MocImbBuy implies an ordinary order imbalance (OrdImbBuy).
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_MOC_IMB_SELL : Market On Close Imbalance - Sell. An excess of 50,000 share or more of MOC orders to sell (not including MOC sell short and MOC sell plus orders) over orders to buy (including MOC orders to buy minus). A MocImbSell implies an ordinary order imbalance (OrdImbSell).
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_NO_MOC_IMB : No Market On Close (MOC) Imbalance. The difference between the number of shares to buy MOC and the number of shares to sell MOC is less than 50,000.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_ORDER_IMB : Non-regulatory condition: a significant imbalance of buy or sell orders exists for this security.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_ORDER_INF : Non-regulatory condition where there is a significant influx of orders.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_ORDER_IMB_BUY : Non-regulatory condition: a significant imbalance of buy orders exists for this security.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_ORDER_IMB_SELL : Non-regulatory condition: a significant imbalance of sell orders exists for this security.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_ORDER_IMB_NONE : The earlier imbalance of buy or sell orders no longer exists for this security. It also might mean that there is no imbalance to begin with.
- MamdaSecurityStatusQual.SECURITY_STATUS_QUAL_RANGE_IND : Trading Range Indication. Not an Opening Delay or Trading Halted condition: this condition is used prior to the opening of a security to denote a probable trading range (bid and offer prices, no sizes).
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_ITS_PREOPEN : ITS pre-opening indication.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_RESERVED : Reserved (e.g., CME).
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_FROZEN : Frozen (e.g., CME).
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_PREOPEN : Preopening state (e.g., CME).
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_ADD_INFO : Additional Information. For a security that is Opening Delayed or Trading Halted, if inadequate information is disclosed during a "news dissemination or news pending" Opening Delay or Trading Halt, the Opening Delay or Trading Halt reason could be subsequently reported as "Additional Information."
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_OPEN_DELAY : Security's opening has been delayed by exchange. This value is usually followed by another value specifying the reason for the opening delay.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_NO_OPEN_NO_RESUME : Indicates that trading halt or opening delay will be in effect for the remainder of the trading day.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_PRICE_IND : An approximation of what a security's opening or re-opening price range (bid and offer prices, no sizes) will be when trading resumes after a delayed opening or after a trading halt.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_EQUIPMENT : Non-regulatory condition: the ability to trade this security by a participant is temporarily inhibited due to a systems, equipment or communications facility problem, or for other technical reasons.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_FILINGS : Not current in regulatory filings.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_NEWS : News pending. Denotes a regulatory trading halt due to an expected news announcement which influence the security. An Opening Delay or Trading Halt may be continued once the news has been disseminated.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_NEWS_DISSEM : News Dissemination. Denotes a regulatory trading halt when relevant news influencing the security is being disseminated. Trading is suspended until the primary market determines that an adequate publication or disclosure of information has occurred.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_LISTING : Listing Noncompliance.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_OPERATION : Operational Halt
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_INFO : Information Requested. Regulatory condition: more disclosure of information is requested by the exchange for this security.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_SEC : SEC Suspension.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_TIMES : News Resumption Times.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_OTHER : Other Regulatory Halt.
- MamdaSecurityStatusQual.MAMDA_SECURITY_STATUS_QUAL_RELATED : Related Security; In View Of Common. Non-regulatory condition: the halt or opening delay in this security is due to its relationship with another security. This condition also applies to non-common associated securities (e.g. warrants, rights, preferreds, classes, etc.) in view of the common stock.
- IPO : Upcoming IPO issue not yet trading.
- Specified by:
getSecurityStatusQualifierEnum
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifierEnum
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusQualifierEnum()
-
getSecurityStatusStr
public java.lang.String getSecurityStatusStr()
Description copied from interface:MamdaSecurityStatusUpdate
NYSE Technologies normalised security status. See getSecurityStatusOrig for the original exchange value.- None : No security status is known/available for this security.
- Normal : Security is open for normal quoting and trading
- Closed : Security is closed (usually before or after market open)
- Halted : Security has been halted by exchange.
- NotExist : Security does not currently exist in cache (but it might in the future).
- Deleted : Security has been deleted (e.g., merger, expiration, etc.)
- Auction : Security has gone into auction.
- Crossing : Security crossing.
- Unknown : Security status not currently known.
- Specified by:
getSecurityStatusStr
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusStr
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusStr()
-
getSecurityStatusQualifierStr
public java.lang.String getSecurityStatusQualifierStr()
Description copied from interface:MamdaSecurityStatusUpdate
Security status qualifier.- None : No security status qualifier is known/available for this security.
- Excused : An Excused withdrawal from the market.
- Withdrawn : Non-excused withdrawal by the market maker.
- Suspended : Suspended Trading
- Resume : Resume trading/quoting after halt.
- QuoteResume : Resume quoting after halt. NASDAQ distinguishes between resumption of quoting versus trading, although these appear to always occur one after the other.
- TradeResume : Resume trading after halt. NASDAQ distinguishes between resumption of quoting versus trading, although these appear to always occur one after the other.
- ResumeTime : When the security is expected to resume trading.
- MktImbBuy : Market Imbalance - Buy. A 50,000 share or more excess of market orders to buy over market orders to sell as of 9:00am on expiration days. A MktImbBuy implies an ordinary order imbalance (OrdImbBuy).
- MktImbSell : Market Imbalance - Sell. A 50,000 share or more excess of market orders to sell over market orders to buy as of 9:00am on expiration days. A MktImbSell implies an ordinary order imbalance (OrdImbSell).
- NoMktImb : No Market Imbalance. Indicates that the imbalance of market orders for a security is less than 50,000 shares as of 9:00am on expiration days.
- MocImbBuy : Market On Close Imbalance - Buy. An excess of 50,000 share or more of MOC orders to buy over MOC orders to sell (including MOC sell plus and MOC sell short orders). A MocImbBuy implies an ordinary order imbalance (OrdImbBuy).
- MocImbSell : Market On Close Imbalance - Sell. An excess of 50,000 share or more of MOC orders to sell (not including MOC sell short and MOC sell plus orders) over orders to buy (including MOC orders to buy minus). A MocImbSell implies an ordinary order imbalance (OrdImbSell).
- NoMocImb : No Market On Close (MOC) Imbalance. The difference between the number of shares to buy MOC and the number of shares to sell MOC is less than 50,000.
- OrderImb : Non-regulatory condition: a significant imbalance of buy or sell orders exists for this security.
- OrderInf : Non-regulatory condition where there is a significant influx of orders.
- OrderImbBuy : Non-regulatory condition: a significant imbalance of buy orders exists for this security.
- OrderImbSell : Non-regulatory condition: a significant imbalance of sell orders exists for this security.
- OrderImbNone : The earlier imbalance of buy or sell orders no longer exists for this security. It also might mean that there is no imbalance to begin with.
- RangeInd : Trading Range Indication. Not an Opening Delay or Trading Halted condition: this condition is used prior to the opening of a security to denote a probable trading range (bid and offer prices, no sizes).
- ItsPreOpen : ITS pre-opening indication.
- Reserved : Reserved (e.g., CME).
- Frozen : Frozen (e.g., CME).
- PreOpen : Preopening state (e.g., CME).
- AddInfo : Additional Information. For a security that is Opening Delayed or Trading Halted, if inadequate information is disclosed during a "news dissemination or news pending" Opening Delay or Trading Halt, the Opening Delay or Trading Halt reason could be subsequently reported as "Additional Information."
- OpenDelay : Security's opening has been delayed by exchange. This value is usually followed by another value specifying the reason for the opening delay.
- NoOpenNoResume : Indicates that trading halt or opening delay will be in effect for the remainder of the trading day.
- PriceInd : An approximation of what a security's opening or re-opening price range (bid and offer prices, no sizes) will be when trading resumes after a delayed opening or after a trading halt.
- Equipment : Non-regulatory condition: the ability to trade this security by a participant is temporarily inhibited due to a systems, equipment or communications facility problem, or for other technical reasons.
- Filings : Not current in regulatory filings.
- News : News pending. Denotes a regulatory trading halt due to an expected news announcement which influence the security. An Opening Delay or Trading Halt may be continued once the news has been disseminated.
- NewsDissem : News Dissemination. Denotes a regulatory trading halt when relevant news influencing the security is being disseminated. Trading is suspended until the primary market determines that an adequate publication or disclosure of information has occurred.
- Listing : Listing Noncompliance.
- Operation : Operational Halt
- Info : Information Requested. Regulatory condition: more disclosure of information is requested by the exchange for this security.
- SEC : SEC Suspension.
- Times : News Resumption Times.
- Other : Other Regulatory Halt.
- Related : Related Security; In View Of Common. Non-regulatory condition: the halt or opening delay in this security is due to its relationship with another security. This condition also applies to non-common associated securities (e.g. warrants, rights, preferreds, classes, etc.) in view of the common stock.
- IPO : Upcoming IPO issue not yet trading.
- Specified by:
getSecurityStatusQualifierStr
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifierStr
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusQualifierStr()
-
getSecurityStatusOrigStr
public java.lang.String getSecurityStatusOrigStr()
- Specified by:
getSecurityStatusOrigStr
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusOrigStr
in interfaceMamdaSecurityStatusUpdate
- See Also:
MamdaSecurityStatusUpdate.getSecurityStatusOrigStr()
-
getReason
public java.lang.String getReason()
Description copied from interface:MamdaSecurityStatusUpdate
Unnormalized (feed-specific) reason associated with the current status of the security (e.g. halted, delayed, etc.). For normalized field, seegetSecurityStatusQualifierStr
/getSecurityStatusQualifierEnum
.- Specified by:
getReason
in interfaceMamdaSecurityStatusRecap
- Specified by:
getReason
in interfaceMamdaSecurityStatusUpdate
- Returns:
- The reason for the current status.
- See Also:
MamdaSecurityStatusUpdate.getReason()
-
getLuldTime
public com.wombat.mama.MamaDateTime getLuldTime()
-
getLuldIndicator
public char getLuldIndicator()
-
getSrcTimeFieldState
public short getSrcTimeFieldState()
Description copied from interface:MamdaBasicEvent
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- Specified by:
getSrcTimeFieldState
in interfaceMamdaBasicEvent
- Specified by:
getSrcTimeFieldState
in interfaceMamdaBasicRecap
- Returns:
- source time Field State
-
getActivityTimeFieldState
public short getActivityTimeFieldState()
Description copied from interface:MamdaBasicEvent
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- Specified by:
getActivityTimeFieldState
in interfaceMamdaBasicEvent
- Specified by:
getActivityTimeFieldState
in interfaceMamdaBasicRecap
- Returns:
- activity time Field State
-
getSendTimeFieldState
public short getSendTimeFieldState()
- Specified by:
getSendTimeFieldState
in interfaceMamdaBasicRecap
- Returns:
- send time Field State
-
getLineTimeFieldState
public short getLineTimeFieldState()
- Specified by:
getLineTimeFieldState
in interfaceMamdaBasicRecap
- Returns:
- line time Field State
-
getShortSaleCircuitBreakerFieldState
public short getShortSaleCircuitBreakerFieldState()
- Specified by:
getShortSaleCircuitBreakerFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getShortSaleCircuitBreakerFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- Returns the FieldState, always MODIFIED.
-
getEventSeqNumFieldState
public short getEventSeqNumFieldState()
Description copied from interface:MamdaBasicEvent
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- Specified by:
getEventSeqNumFieldState
in interfaceMamdaBasicEvent
-
getEventTimeFieldState
public short getEventTimeFieldState()
Description copied from interface:MamdaBasicEvent
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- Specified by:
getEventTimeFieldState
in interfaceMamdaBasicEvent
-
getPartIdFieldState
public short getPartIdFieldState()
- Specified by:
getPartIdFieldState
in interfaceMamdaBasicRecap
- Returns:
- participant ID Field State
-
getSymbolFieldState
public short getSymbolFieldState()
- Specified by:
getSymbolFieldState
in interfaceMamdaBasicRecap
- Returns:
- symbol Field State
-
getSecurityStatusFieldState
public short getSecurityStatusFieldState()
- Specified by:
getSecurityStatusFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status Field State
-
getSecurityStatusQualifierFieldState
public short getSecurityStatusQualifierFieldState()
- Specified by:
getSecurityStatusQualifierFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifierFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status Field State
-
getSecurityStatusEnumFieldState
public short getSecurityStatusEnumFieldState()
- Specified by:
getSecurityStatusEnumFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusEnumFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status Field State
-
getSecurityStatusQualifierEnumFieldState
public short getSecurityStatusQualifierEnumFieldState()
- Specified by:
getSecurityStatusQualifierEnumFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifierEnumFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status qualifier enum Field State
-
getSecurityStatusStrFieldState
public short getSecurityStatusStrFieldState()
- Specified by:
getSecurityStatusStrFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusStrFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status string Field State
-
getSecurityStatusQualifierStrFieldState
public short getSecurityStatusQualifierStrFieldState()
- Specified by:
getSecurityStatusQualifierStrFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusQualifierStrFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status qualifier string Field State
-
getSecurityStatusOrigStrFieldState
public short getSecurityStatusOrigStrFieldState()
- Specified by:
getSecurityStatusOrigStrFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getSecurityStatusOrigStrFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the security status orig string Field State
-
getReasonFieldState
public short getReasonFieldState()
- Specified by:
getReasonFieldState
in interfaceMamdaSecurityStatusRecap
- Specified by:
getReasonFieldState
in interfaceMamdaSecurityStatusUpdate
- Returns:
- the reason Field State
-
getLuldIndicatorFieldState
public short getLuldIndicatorFieldState()
-
getLuldTimeFieldState
public short getLuldTimeFieldState()
-
onMsg
public void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
Implementation of MamdaListener interface.- Specified by:
onMsg
in interfaceMamdaMsgListener
- Parameters:
subscription
- 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.
-
getFieldAsString
public java.lang.String getFieldAsString(com.wombat.mama.MamaMsgField field)
-
-