Inherits from com.wombat.mamda.MamdaMsgListener
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) |
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.
inline MamdaMultiSecurityManager(
String symbol
)
Parameters:
Only constructor for the class. No default available.
inline void addHandler(
MamdaMultiSecurityHandler handler
)
Parameters:
Add a specialized handler for notifications about new securities.
inline void addListener(
MamdaMsgListener listener,
String symbol
)
Parameters:
Add a specialized message listener (e.g. a MamdaQuoteListener, MamdaTradeListener, etc.) for a security.
Multiple listeners for each security can be added.
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