public interface FixPConnectionHandler
| Modifier and Type | Method and Description |
|---|---|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onBusinessMessage(FixPConnection connection,
int templateId,
org.agrona.DirectBuffer buffer,
int offset,
int blockLength,
int version,
boolean possRetrans,
FixPMessageHeader messageHeader)
Callback for receiving business messages.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onDisconnect(FixPConnection connection,
DisconnectReason reason)
Callback invoked when this connection is disconnected.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onError(FixPConnection connection,
java.lang.Exception ex)
Callback when an error happens internally with the processing of a message in iLink3 that can't be handled
through normal protocol means.
|
default io.aeron.logbuffer.ControlledFragmentHandler.Action |
onFinishedSending(FixPConnection connection)
Callback invoked when this connection receives a FinishedSending message from a counter-party.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onNotApplied(FixPConnection connection,
long fromSequenceNumber,
long msgCount,
NotAppliedResponse response)
Callback when Artio has received a NotApplied message.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onRetransmitReject(FixPConnection connection,
java.lang.String reason,
long requestTimestamp,
int errorCodes)
Callback when Artio has received a RetransmitReject message.
|
default io.aeron.logbuffer.ControlledFragmentHandler.Action |
onRetransmitRequest(FixPConnection connection,
RetransmissionInfo retransmissionInfo)
Callback when Artio has received a RetransmitRequest message.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onRetransmitTimeout(FixPConnection connection)
Callback triggered by a timeout on a retransmit request.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action |
onSequence(FixPConnection connection,
long nextSeqNo)
Notifies an application when a sequence message is received.
|
io.aeron.logbuffer.ControlledFragmentHandler.Action onBusinessMessage(FixPConnection connection, int templateId, org.agrona.DirectBuffer buffer, int offset, int blockLength, int version, boolean possRetrans, FixPMessageHeader messageHeader)
final int encodedLength = b3.entrypoint.fixp.sbe.MessageHeaderDecoder.ENCODED_LENGTH +
uk.co.real_logic.artio.fixp.SimpleOpenFramingHeader.SOFH_LENGTH;
offset -= encodedLength;
length += encodedLength;
connection - the connection receiving this messagetemplateId - the templateId of the SBE message that you have received.buffer - the buffer containing the message.offset - the offset within the buffer at which your message starts.blockLength - the blockLength of the received message.version - the sbe version of the protocol.possRetrans - true of the possRetrans flag is set to true.messageHeader - additional fields related to the message.io.aeron.logbuffer.ControlledFragmentHandler.Action onNotApplied(FixPConnection connection, long fromSequenceNumber, long msgCount, NotAppliedResponse response)
NotAppliedResponse parameter can be used
in order to get Artio to retransmit messages or use a Sequence message in order to fill the gap.connection - the connection receiving this messagefromSequenceNumber - the fromSequenceNumber of the NotApplied message.msgCount - the msgCount of the NotApplied message.response - used to tell Artio how to respond to the NotApplied message.io.aeron.logbuffer.ControlledFragmentHandler.Action onRetransmitReject(FixPConnection connection, java.lang.String reason, long requestTimestamp, int errorCodes)
connection - the connection receiving this messagereason - the reason of the RetransmitReject messagerequestTimestamp - the requestTimestamp of the RetransmitReject messageerrorCodes - the errorCodes of the RetransmitReject messagedefault io.aeron.logbuffer.ControlledFragmentHandler.Action onRetransmitRequest(FixPConnection connection, RetransmissionInfo retransmissionInfo)
connection - the connection receiving this message.retransmissionInfo - provides information about the retransmission message and how to reject them.io.aeron.logbuffer.ControlledFragmentHandler.Action onRetransmitTimeout(FixPConnection connection)
ILink3ConnectionConfiguration.Builder.retransmitNotificationTimeoutInMs(int) for details.connection - the connection that initiated the retransmit request.io.aeron.logbuffer.ControlledFragmentHandler.Action onSequence(FixPConnection connection, long nextSeqNo)
connection - the connection receiving this messagenextSeqNo - the next sequence number contained in the body of the sequence message.io.aeron.logbuffer.ControlledFragmentHandler.Action onError(FixPConnection connection, java.lang.Exception ex)
connection - the connection where this error has occurred.ex - the exception corresponding to an errorio.aeron.logbuffer.ControlledFragmentHandler.Action onDisconnect(FixPConnection connection, DisconnectReason reason)
connection - the connection that was disconnected.reason - the reason for the disconnection.default io.aeron.logbuffer.ControlledFragmentHandler.Action onFinishedSending(FixPConnection connection)
connection.finishedSending() unless it has
already called finishedSending() to start the process. Your application may continue to send
messages until it has invoked that method.
NB: implementing this method is strictly optional. Not all FIXP protocols (eg: iLink3) implement the finished
sending / finished receiving mechanism for protocol finalization and this method won't be invoked in the case
of those protocols.connection - the connection that has received the FinishedSending messageCopyright © 2015-2022 Real Logic Limited. All Rights Reserved.