public abstract class AbstractMFHandler extends java.lang.Object implements MFHandler
| Constructor and Description |
|---|
AbstractMFHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBatchComplete(int batchDefID,
MFClient client)
Batch Complete Event: Called on completed batches.
|
void |
onConnect(MFClient client)
Called right after a reconnection attempt succeeds.
|
void |
onDateRollover(DateRollover dateRollover,
MFClient client)
Date Rollover Event: Called on new date rollover upate.
|
void |
onDisconnect(MFClient client)
Called when connection is broken unexpectedly; this signals that the
dispatcher is about to attempt to reconnect and if necessary fail over to
the secondary server, if one has been provided.
|
void |
onDropCopy(DropCopy dropCopy,
MFClient client)
Drop Copy Trading Event: Callback that gets invoked on DropCopy events.
|
void |
onEventReport(EventReport eventReport,
MFClient client)
Report Event: Called on new event report.
|
void |
onHeartbeat(Heartbeat heartbeat,
MFClient client)
Called with fast heartbeats containing feed status information.
|
void |
onMarketData(MarketView marketData,
MFClient client)
Market Data Event: Called on new market-data updates.
|
void |
onOrderCanceled(OrderCanceled orderCanceled,
MFClient client)
Trading Event: Callback that gets invoked when an Order is successfully canceled.
|
void |
onOrderCancelRejected(OrderCancelRejected orderCancelRejected,
MFClient client)
Trading Event: Callback that gets invoked when an Order cancel is rejected.
|
void |
onOrderDone(OrderDone orderDone,
MFClient client)
Trading Event: Callback that gets invoked when an Order is finished
|
void |
onOrderReceived(OrderReceived orderReceived,
MFClient client)
Trading Event: Callback that gets invoked when an Order is received by the server.
|
void |
onOrderRejected(OrderRejected orderRejected,
MFClient client)
Trading Event: Callback that gets invoked when an Order is rejected.
|
void |
onOrderSubmitted(OrderSubmitted orderSubmitted,
MFClient client)
Trading Event: Callback that gets invoked when an Order is successfully submitted.
|
void |
onReplayDone(ReplayDone replayDone,
MFClient client)
Replay Event: Callback that gets invoked after replay request has been fully processed.
|
void |
onStart(MFClient client)
Called right after we start dispatching events, once per call to client.run().
|
void |
onStop(MFClient client)
Called right before we stop dispatching events and return from client.run().
|
void |
onSubscriptionEvent(SubscriptionEvent subscriptionEvent,
MFClient client)
Subscription Event: Called when the status of the subscription changes.
|
void |
onTradeCapture(TradeCapture tradeCapture,
MFClient client)
Trading Event: Callback that gets invoked on TradeCapture events
|
public void onStart(MFClient client)
public void onStop(MFClient client)
public void onDisconnect(MFClient client)
onDisconnect in interface MFHandlerclient - -- the target clientpublic void onConnect(MFClient client)
public void onHeartbeat(Heartbeat heartbeat, MFClient client)
onHeartbeat in interface MFHandlerheartbeat - -- the event parameterclient - -- the target clientpublic void onSubscriptionEvent(SubscriptionEvent subscriptionEvent, MFClient client)
onSubscriptionEvent in interface MFHandlersubscriptionEvent - -- the event parameterclient - -- the target clientpublic void onMarketData(MarketView marketData, MFClient client)
onMarketData in interface MFHandlermarketData - -- the event parameterclient - -- the target clientpublic void onEventReport(EventReport eventReport, MFClient client)
onEventReport in interface MFHandlereventReport - -- the event parameterclient - -- the target clientpublic void onDateRollover(DateRollover dateRollover, MFClient client)
onDateRollover in interface MFHandlerdateRollover - -- the event parameterclient - -- the target clientpublic void onBatchComplete(int batchDefID,
MFClient client)
onBatchComplete in interface MFHandlerbatchDefID - -- the batch that is completeclient - -- the target clientpublic void onOrderReceived(OrderReceived orderReceived, MFClient client)
onOrderReceived in interface MFHandlerorderReceived - -- the resultsclient - -- the target clientpublic void onOrderRejected(OrderRejected orderRejected, MFClient client)
onOrderRejected in interface MFHandlerorderRejected - -- the resultsclient - -- the target clientpublic void onOrderSubmitted(OrderSubmitted orderSubmitted, MFClient client)
onOrderSubmitted in interface MFHandlerorderSubmitted - -- the resultsclient - -- the target clientpublic void onOrderCanceled(OrderCanceled orderCanceled, MFClient client)
onOrderCanceled in interface MFHandlerorderCanceled - -- the resultsclient - -- the target clientpublic void onOrderCancelRejected(OrderCancelRejected orderCancelRejected, MFClient client)
onOrderCancelRejected in interface MFHandlerorderCancelRejected - -- the resultsclient - -- the target clientpublic void onTradeCapture(TradeCapture tradeCapture, MFClient client)
onTradeCapture in interface MFHandlertradeCapture - -- the resultsclient - -- the target clientpublic void onOrderDone(OrderDone orderDone, MFClient client)
onOrderDone in interface MFHandlerorderDone - -- the resultsclient - -- the target clientpublic void onDropCopy(DropCopy dropCopy, MFClient client)
onDropCopy in interface MFHandlerdropCopy - -- the resultsclient - -- the target clientpublic void onReplayDone(ReplayDone replayDone, MFClient client)
onReplayDone in interface MFHandlerreplayDone - -- the resultsclient - -- the target client