public class MamdaMultiParticipantManager extends java.lang.Object implements MamdaMsgListener
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 and Description |
---|
MamdaMultiParticipantManager(java.lang.String symbol)
Only constructor for the class.
|
Modifier and Type | Method and 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.
|
public MamdaMultiParticipantManager(java.lang.String symbol)
symbol
- The group symbol for which the corresponding subscription
was created.public void addHandler(MamdaMultiParticipantHandler handler)
handler
- Concrete instance of the MamdaMultiParticipantHandler
interface.public void addConsolidatedListener(MamdaMsgListener listener)
listener
- Concrete instance of the MamdaMsgListener interface.public void addParticipantListener(MamdaMsgListener listener, java.lang.String partId)
listener
- Concrete instance of the MamdaMsgListener interface.partId
- The participant id for the instrument. This is suffix
for the symbol in NYSE Technologies symbology.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.