Class MamdaMultiParticipantManager

  • All Implemented Interfaces:
    MamdaMsgListener

    public class MamdaMultiParticipantManager
    extends java.lang.Object
    implements MamdaMsgListener
    MamdaMultiParticipantManager is a class that manages updates on a consolidated basis for securities that may be traded on multiple exchanges and which may have a national best bid and offer. Developers are notified of each element available for the consolidated security, including the national best bid and offer, and each regional exchange (Market Maker). Developers can pick and choose which elements they wish to provide handling for (e.g., BBO-only, certain regional exchanges, etc.). Specialized Listeners can be added to the MamdaMultiParticipantManager in response to the callbacks on the MamdaMultiParticipantHandler being invoked. Alternatively, the Listeners can be added up front if the participants are known in advance. Note: the MamdaMultiParticipantManager can also be used for securities that are not traded on multiple exchanges.
    • Constructor Summary

      Constructors 
      Constructor Description
      MamdaMultiParticipantManager​(java.lang.String symbol)
      Only constructor for the class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addConsolidatedListener​(MamdaMsgListener listener)
      Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for the consolidated data.
      void addHandler​(MamdaMultiParticipantHandler handler)
      Add a specialized handler for notifications about the multi-participant security.
      void addParticipantListener​(MamdaMsgListener listener, java.lang.String partId)
      Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for a participant.
      void onMsg​(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
      Implementation of the MamdaMsgListener Interface.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MamdaMultiParticipantManager

        public MamdaMultiParticipantManager​(java.lang.String symbol)
        Only constructor for the class. No default available.
        Parameters:
        symbol - The group symbol for which the corresponding subscription was created.
    • Method Detail

      • addHandler

        public void addHandler​(MamdaMultiParticipantHandler handler)
        Add a specialized handler for notifications about the multi-participant security.
        Parameters:
        handler - Concrete instance of the MamdaMultiParticipantHandler interface.
      • addConsolidatedListener

        public void addConsolidatedListener​(MamdaMsgListener listener)
        Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for the consolidated data. Multiple listeners can be added.
        Parameters:
        listener - Concrete instance of the MamdaMsgListener interface.
      • addParticipantListener

        public void addParticipantListener​(MamdaMsgListener listener,
                                           java.lang.String partId)
        Add a specialized message listener (e.g., a MamdaQuoteListener, MamdaTradeListener, etc.) for a participant. Multiple listeners for each participant can be added.
        Parameters:
        listener - Concrete instance of the MamdaMsgListener interface.
        partId - The participant id for the instrument. This is suffix for the symbol in NYSE Technologies symbology.
      • onMsg

        public void onMsg​(MamdaSubscription subscription,
                          com.wombat.mama.MamaMsg msg,
                          short msgType)
        Implementation of the MamdaMsgListener Interface.
        Specified by:
        onMsg in interface MamdaMsgListener
        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.