public interface CallbackHandler extends MessageHandler
| Modifier and Type | Method and Description |
|---|---|
default void |
handleUnexpectedMessage(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeader,
org.agrona.sbe.MessageDecoderFlyweight message)
Override this if you want to change the unexpected method handling.
|
default void |
onHeartbeat(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.HeartbeatDecoder heartbeatDecoder)
The heartbeat will have been handled by the protocol code.
|
default void |
onLogonResponse(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.LogonResponseDecoder logonResponseDecoder)
Handled by the Session by immediately disconnecting - as per the spec.
|
void |
onMarketFactoryLogOff()
Called after session has been logged out and disconnected from the MarketFactory Server.
|
void |
onMarketFactoryLogOn()
Called after connection and synchronization is complete to MarketFactory Server.
|
long |
onReplayRequest(long startMsgSeqNum,
long targetMsgSeqNum)
Must replay the message at the startMsgSeqNum or, if that message is not suitable for replay then a
SequenceResetGapFillEncoder should be used to skip
to the next replayable message or the targetMsgSeqNum value
If there are no more messages to resend then the SequenceResetGapFillEncoder
should contain the targetMsgSeqNum value. |
default void |
onSequenceGapFill(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.SequenceResetGapFillDecoder sequenceResetGapFillDecoder)
The sequenceResetGapFill message will have been handled as per the protocol by the Session.
|
default void |
onTestRequest(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.TestRequestDecoder testRequestDecoder)
The test request will have been replied to as per the protocol by the Session.
|
default void |
onVenueLogoff()
Called after session has been successfully logged out of the venue.
|
default void |
onVenueLogon()
Called after session has been logged into the venue.
|
onApplicationMessageReport, onBusinessMessageReject, onEndMarker, onErrorReport, onExecutionAck, onExecutionReport, onLogout, onLogoutResponse, onMarketDataIncrementalRefresh, onMarketDataRequestReject, onMassQuote, onNewOrderMultileg, onOrderCancelReject, onOrderTimeout, onQuote, onQuoteCancel, onQuoteRequest, onQuoteResponse, onReject, onReplayedMessage, onSecurityStatus, onUserNotificationvoid onMarketFactoryLogOn()
void onMarketFactoryLogOff()
default void onVenueLogon()
default void onVenueLogoff()
long onReplayRequest(long startMsgSeqNum,
long targetMsgSeqNum)
SequenceResetGapFillEncoder should be used to skip
to the next replayable message or the targetMsgSeqNum value
If there are no more messages to resend then the SequenceResetGapFillEncoder
should contain the targetMsgSeqNum value.
Session.performActions() call while there are messages to replay.
startMsgSeqNum - the sequence number to start replaying fromtargetMsgSeqNum - the last sequence number to replaydefault void onLogonResponse(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.LogonResponseDecoder logonResponseDecoder)
onLogonResponse in interface MessageHandlermessageHeaderDecoder - messageHeaderlogonResponseDecoder - messagedefault void onSequenceGapFill(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.SequenceResetGapFillDecoder sequenceResetGapFillDecoder)
onSequenceGapFill in interface MessageHandlermessageHeaderDecoder - messageHeadersequenceResetGapFillDecoder - messagedefault void onTestRequest(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.TestRequestDecoder testRequestDecoder)
onTestRequest in interface MessageHandlermessageHeaderDecoder - messageHeadertestRequestDecoder - messagedefault void onHeartbeat(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeaderDecoder,
com.marketfactory.protocol.sbe4.HeartbeatDecoder heartbeatDecoder)
onHeartbeat in interface MessageHandlermessageHeaderDecoder - messageHeaderheartbeatDecoder - messagedefault void handleUnexpectedMessage(com.marketfactory.protocol.sbe4.MessageHeaderDecoder messageHeader,
org.agrona.sbe.MessageDecoderFlyweight message)
messageHeader - message header of unexpected messagemessage - the unexpected message