Package com.wombat.mamda
Interface MamdaQuoteHandler
-
public interface MamdaQuoteHandler
MamdaQuoteHandler is an interface for applications that want to have an easy way to handle quote updates. The interface defines callback methods for different types of quote-related events: quotes and closing-quote updates.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onQuoteClosing(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteClosing event, MamdaQuoteRecap recap)
Method invoked for a quote closing summary.void
onQuoteGap(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteGap event, MamdaQuoteRecap recap)
Method invoked when a gap in quote updates is discovered.void
onQuoteRecap(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteRecap recap)
Method invoked when the current last-quote information for the security is available.void
onQuoteUpdate(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteUpdate event, MamdaQuoteRecap recap)
Method invoked when a quote update arrives.
-
-
-
Method Detail
-
onQuoteRecap
void onQuoteRecap(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteRecap recap)
Method invoked when the current last-quote information for the security is available. The reason for the invocation may be any of the following: - Initial image. - Recap update (e.g., after server fault tolerant event or data quality event.) - After stale status removed.- Parameters:
subscription
- The MamdaSubscription handle.listener
- The MamdaSubscription handle.msg
- The MamaMsg that triggered this invocation.recap
- Access to the current value of all fields.
-
onQuoteUpdate
void onQuoteUpdate(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteUpdate event, MamdaQuoteRecap recap)
Method invoked when a quote update arrives.- Parameters:
subscription
- The MamdaSubscription handle.listener
- The MamdaSubscription handle.msg
- The MamaMsg that triggered this invocation.event
- The MamdaQuoteUpdate event.recap
- Access to the current value of all fields.
-
onQuoteGap
void onQuoteGap(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteGap event, MamdaQuoteRecap recap)
Method invoked when a gap in quote updates is discovered.- Parameters:
subscription
- The MamdaSubscription handle.listener
- The MamdaSubscription handle.msg
- The MamaMsg that triggered this invocation.event
- The MamdaQuoteGap event.recap
- Access to the current value of all fields.
-
onQuoteClosing
void onQuoteClosing(MamdaSubscription subscription, MamdaQuoteListener listener, com.wombat.mama.MamaMsg msg, MamdaQuoteClosing event, MamdaQuoteRecap recap)
Method invoked for a quote closing summary.- Parameters:
subscription
- The MamdaSubscription handle.listener
- The MamdaSubscription handle.msg
- The MamaMsg that triggered this invocation.event
- The MamdaQuoteClosing event.recap
- Access to the current value of all fields.
-
-