public interface MFHandler
| 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)
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
|
void onStart(MFClient client)
client - -- the target clientvoid onStop(MFClient client)
client - -- the target clientvoid onDisconnect(MFClient client)
client - -- the target clientvoid onConnect(MFClient client)
client - -- the target clientvoid onHeartbeat(Heartbeat heartbeat, MFClient client)
heartbeat - -- the detailsclient - -- the target clientvoid onSubscriptionEvent(SubscriptionEvent subscriptionEvent, MFClient client)
subscriptionEvent - -- the detailsclient - -- the target clientvoid onMarketData(MarketView marketData, MFClient client)
marketData - -- the detailsclient - -- the target clientvoid onEventReport(EventReport eventReport, MFClient client)
eventReport - -- the detailsclient - -- the target clientvoid onDateRollover(DateRollover dateRollover, MFClient client)
dateRollover - -- the detailsclient - -- the target clientvoid onBatchComplete(int batchDefID,
MFClient client)
batchDefID - -- the batch id that has been completedclient - -- the target clientvoid onOrderReceived(OrderReceived orderReceived, MFClient client)
orderReceived - -- the detailsclient - -- the target clientvoid onOrderRejected(OrderRejected orderRejected, MFClient client)
orderRejected - -- the detailsclient - -- the target clientvoid onOrderSubmitted(OrderSubmitted orderSubmitted, MFClient client)
orderSubmitted - -- the detailsclient - -- the target clientvoid onOrderCanceled(OrderCanceled orderCanceled, MFClient client)
orderCanceled - -- the detailsclient - -- the target clientvoid onOrderCancelRejected(OrderCancelRejected orderCancelRejected, MFClient client)
orderCancelRejected - -- the detailsclient - -- the target clientvoid onDropCopy(DropCopy dropCopy, MFClient client)
dropCopy - -- the detailsclient - -- the target clientvoid onTradeCapture(TradeCapture tradeCapture, MFClient client)
tradeCapture - -- the detailsclient - -- the target clientvoid onOrderDone(OrderDone orderDone, MFClient client)
orderDone - -- the detailsclient - -- the target clientvoid onReplayDone(ReplayDone replayDone, MFClient client)
replayDone - -- the detailsclient - -- the target client