com.wombat.mamda
public class MamdaMultiSecurityManager extends java.lang.Object implements MamdaMsgListener
MamdaMultiSecurityManager
in response to the callbacks
on the MamdaMultiSecurityHandler
being invoked.
Alternatively, the Listeners can be added up front if the participants
are known in advance.Constructor and Description |
---|
MamdaMultiSecurityManager(java.lang.String symbol)
Only constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(MamdaMultiSecurityHandler handler)
Add a specialized handler for notifications about new
securities.
|
void |
addListener(MamdaMsgListener listener,
java.lang.String symbol)
Add a specialized message listener (e.g.
|
void |
onMsg(MamdaSubscription subscription,
com.wombat.mama.MamaMsg msg,
short msgType)
Implementation of the MamdaMsgListener Interface.
|
public MamdaMultiSecurityManager(java.lang.String symbol)
symbol
- The group symbol for which the corresponding subscription
was created.public void addHandler(MamdaMultiSecurityHandler handler)
handler
- Concrete instance of the MamdaMultiSecurityHandler
interface.public void addListener(MamdaMsgListener listener, java.lang.String symbol)
listener
- Concrete instance of the MamdaMsgListener interface.symbol
- The symbol for the instrument.public void onMsg(MamdaSubscription subscription, com.wombat.mama.MamaMsg msg, short msgType)
onMsg
in interface MamdaMsgListener
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.Copyright 2007 Wombat Financial Software, Inc.