Classes Files

com::wombat::mamda::MamdaMultiSecurityManager

More…

Inherits from com.wombat.mamda.MamdaMsgListener

Public Functions

  Name
  MamdaMultiSecurityManager(String symbol)
void addHandler(MamdaMultiSecurityHandler handler)
void addListener(MamdaMsgListener listener, String symbol)
void onMsg(final MamdaSubscription subscription, final MamaMsg msg, final short msgType)

Detailed Description

class com::wombat::mamda::MamdaMultiSecurityManager;

MamdaMultiSecurityManager is a class that manages updates on a group symbol which provides a single subscription to multiple different securities. Developers are notified of each element available for the group and can choose which elements they wish to provide handling for (e.g. based on wildcards).

Specialized Listeners can be added to the [MamdaMultiSecurityManager](classcom_1_1wombat_1_1mamda_1_1MamdaMultiSecurityManager.html) in response to the callbacks on the [MamdaMultiSecurityHandler](interfacecom_1_1wombat_1_1mamda_1_1MamdaMultiSecurityHandler.html) being invoked. Alternatively, the Listeners can be added up front if the participants are known in advance.

Public Functions Documentation

function MamdaMultiSecurityManager

inline MamdaMultiSecurityManager(
    String symbol
)

Parameters:

  • symbol The group symbol for which the corresponding subscription was created.

Only constructor for the class. No default available.

function addHandler

inline void addHandler(
    MamdaMultiSecurityHandler handler
)

Parameters:

Add a specialized handler for notifications about new securities.

function addListener

inline void addListener(
    MamdaMsgListener listener,
    String symbol
)

Parameters:

  • listener Concrete instance of the MamdaMsgListener interface.
  • symbol The symbol for the instrument.

Add a specialized message listener (e.g. a MamdaQuoteListener, MamdaTradeListener, etc.) for a security.

Multiple listeners for each security can be added.

function onMsg

inline void onMsg(
    final MamdaSubscription subscription,
    final MamaMsg msg,
    final short msgType
)

Reimplements: com::wombat::mamda::MamdaMsgListener::onMsg

Implementation of the MamdaMsgListener Interface.


Updated on 2023-03-31 at 15:30:33 +0100