public interface FixPConnection
| Modifier and Type | Interface and Description |
|---|---|
static class |
FixPConnection.State
Defines the internal state of the Session, this can be accessed using
the
state() method. |
| Modifier and Type | Field and Description |
|---|---|
static long |
NOT_AWAITING_RETRANSMIT |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Abort a message that has been claimed.
|
boolean |
canSendMessage()
Check if a message can be sent.
|
void |
commit()
Commit a message that has been claimed.
|
long |
connectionId()
Gets the Artio connectionId of the current connection for this session.
|
long |
counterpartyKeepAliveIntervalInMs() |
boolean |
isConnected()
Returns true if a connection is connected at this point in time.
|
FixPKey |
key()
Gets the key associated with this connection.
|
long |
nextRecvSeqNo()
Gets the next sequence number to be expected when receiving a new business layer message.
|
void |
nextRecvSeqNo(long nextRecvSeqNo)
Sets the next sequence number to be expected when receiving a new business layer message.
|
long |
nextSentSeqNo()
Gets the next sequence number to be used when sending a new business layer message.
|
void |
nextSentSeqNo(long nextSentSeqNo)
Sets the next sequence number to be used when sending a new business layer message.
|
long |
ourKeepAliveIntervalInMs() |
long |
requestDisconnect(DisconnectReason reason)
Disconnect your session, providing a reason.
|
FixPConnection.State |
state()
Gets the current State of this session.
|
long |
tryClaim(org.agrona.sbe.MessageEncoderFlyweight message)
Tries to send a business layer message with no variable length or group fields.
|
long |
tryClaim(org.agrona.sbe.MessageEncoderFlyweight message,
int variableLength)
Tries to send a business layer message with a variable length or group fields.
|
long |
trySendSequence()
Try to send a sequence message indicating the current sent sequence number position.
|
static final long NOT_AWAITING_RETRANSMIT
long tryClaim(org.agrona.sbe.MessageEncoderFlyweight message)
commit() method should be used to commit the message.message - the business layer message to send.tryClaim(MessageEncoderFlyweight, int)long tryClaim(org.agrona.sbe.MessageEncoderFlyweight message,
int variableLength)
commit() method should be used to commit the message.message - the business layer message to send.variableLength - the total size of all the variable length and group fields in the message including their
headers. Aka the total length of the message minus it's block length.tryClaim(MessageEncoderFlyweight)void commit()
abort()void abort()
tryClaim() then this method can be called in order to abort the message and not send it.long trySendSequence()
nextSentSeqNo(long) in order to move the sent sequence number forward in agreement with the
exchange.long requestDisconnect(DisconnectReason reason)
reason - the reason you disconnected.long connectionId()
FixPConnection.State state()
long nextSentSeqNo()
void nextSentSeqNo(long nextSentSeqNo)
nextSentSeqNo - the next sequence number to be used when sending a new business layer message.long nextRecvSeqNo()
void nextRecvSeqNo(long nextRecvSeqNo)
nextRecvSeqNo - the next sequence number to be expected when receiving a new business layer message.boolean canSendMessage()
FixPKey key()
boolean isConnected()
long counterpartyKeepAliveIntervalInMs()
long ourKeepAliveIntervalInMs()
Copyright © 2015-2022 Real Logic Limited. All Rights Reserved.