|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.onixs.fix.engine.Session
public class Session
A FIX Session.
It is defined as a bi-directional stream of ordered messages between two parties
within a continuous sequence number series.
A single FIX session can exist across multiple sequential (not concurrent) physical connections.
A FIX Connection is comprised of three parts: logon, message exchange, and logout.
A FIX Session is comprised of one or more FIX Connections, meaning that a FIX Session
spans multiple logins.
Parties can connect and disconnect multiple times while maintaining a single FIX session.
Connecting parties must bi-laterally agree as to when sessions are to be started/stopped
based upon individual system and time zone requirements.
Resetting the inbound and outbound sequence numbers back to 1, for whatever reason,
constitutes the beginning of a new FIX session.
Nested Class Summary | |
---|---|
static class |
Session.ErrorArgs
Error event data. |
static interface |
Session.ErrorListener
Error event listener. |
static class |
Session.ErrorReason
Error reason. |
static class |
Session.InboundApplicationMessageArgs
Inbound application-level message received from the counterparty event data. |
static interface |
Session.InboundApplicationMessageListener
Inbound application-level message received from the counterparty event listener. |
static class |
Session.InboundSessionMessageArgs
Inbound session-level message received from the counterparty event data. |
static interface |
Session.InboundSessionMessageListener
Inbound session-level message received from the counterparty event listener. |
static class |
Session.MessageEventArgs
Message related event data. |
static class |
Session.MessageResendingArgs
Message resend request received from the counterparty event data. |
static interface |
Session.MessageResendingListener
Message resend request received from the counterparty event listener. |
static class |
Session.OutboundApplicationMessageArgs
Outbound application-level message queued for sending event data. |
static interface |
Session.OutboundApplicationMessageListener
Outbound application-level message queued for sending event listener. |
static class |
Session.OutboundSessionMessageArgs
Outbound session-level message queued for sending event data. |
static interface |
Session.OutboundSessionMessageListener
Outbound session-level message queued for sending event listener. |
static class |
Session.StateChangeArgs
Session state changed event data. |
static interface |
Session.StateChangeListener
Session state changed event listener. |
static class |
Session.WarningArgs
Warning event data. |
static interface |
Session.WarningListener
Warning event listener. |
static class |
Session.WarningReason
Warning reason. |
Constructor Summary | |
---|---|
Session(SessionId sessionId)
|
|
Session(SessionId sessionId,
boolean keepSequenceNumbersAfterLogout,
SessionStorageType storageType,
OutQueue outQueue)
Creates the FIX Session. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. |
|
Session(SessionId sessionId,
SessionStorageType storageType,
OutQueue outQueue)
Creates the FIX Session. The keepSequenceNumbersAfterLogout option to keep sequence numbers after the logout exchange is set to true. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. |
|
Session(String senderCompID,
String targetCompID,
Version version)
Creates the FIX session. The keepSequenceNumbersAfterLogout option to keep sequence numbers after the logout exchange is set to true. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. The storageType session storage type is set to SessionStorageType.FileBasedStorage . |
|
Session(String senderCompID,
String targetCompID,
Version version,
boolean keepSequenceNumbersAfterLogout)
Creates the FIX session. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. The storageType session storage type is set to SessionStorageType.FileBasedStorage . |
|
Session(String senderCompID,
String targetCompID,
Version version,
boolean keepSequenceNumbersAfterLogout,
String token)
Creates the FIX session. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. The storageType session storage type is set to SessionStorageType.FileBasedStorage . |
|
Session(String senderCompID,
String targetCompID,
Version version,
boolean keepSequenceNumbersAfterLogout,
String token,
boolean cleanStart)
Creates the FIX Session. The storageType session storage type is set to SessionStorageType.FileBasedStorage . |
|
Session(String senderCompID,
String targetCompID,
Version version,
boolean keepSequenceNumbersAfterLogout,
String token,
SessionStorageType storageType)
Creates the FIX Session. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. |
|
Session(String senderCompID,
String targetCompID,
Version version,
SessionStorageType storageType)
Creates the FIX Session. The keepSequenceNumbersAfterLogout option to keep sequence numbers after the logout exchange is set to true. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. |
|
Session(String senderCompID,
String targetCompID,
Version version,
String token)
Creates the FIX session. The keepSequenceNumbersAfterLogout option to keep sequence numbers after the logout exchange is set to true. The cleanStart option to ignore the previous log files and start the FIX session anew is set to false. The storageType session storage type is set to SessionStorageType.FileBasedStorage . |
Method Summary | |
---|---|
void |
breakConnection()
Breaks the FIX connection non-gracefully (without the exchange of Logout (MsgType=5) messages). The socket is closed. |
void |
dispose()
Explicitly releases resource. |
Message |
findSentMessage(long messageSequenceNumber)
Deprecated. Please use getStorage() instead. |
String |
getCounterpartyHost()
Returns the counterparty host address. |
int |
getCounterpartyPort()
Gets the counterparty port number. |
Session.ErrorListener |
getErrorListener()
Returns error listener. |
int |
getHeartBtInt()
Returns the Heartbeat interval (seconds, the HeartBtInt (tag=108) field value). |
SessionId |
getId()
|
Session.InboundApplicationMessageListener |
getInboundApplicationMessageListener()
Returns inbound application message listener. |
MessageFilter |
getInboundMessageLogFilter()
|
Session.InboundSessionMessageListener |
getInboundSessionMessageListener()
Returns inbound session message listener. |
long |
getInSeqNum()
Returns the expected sequence number of the next incoming message. |
boolean |
getLogInboundMessages()
|
long |
getMaxStorageSize()
Returns the maximum size of the storage in messages. |
Session.MessageResendingListener |
getMessageResendingListener()
Returns message resending listener. |
Session.OutboundApplicationMessageListener |
getOutboundApplicationMessageListener()
Returns outbound application message listener. |
long |
getOutboundQueueBytes()
Returns the total size of messages in the outgoing queue in bytes. |
long |
getOutboundQueueCount()
Returns number of messages in the outgoing queue. |
Session.OutboundSessionMessageListener |
getOutboundSessionMessageListener()
Returns outbound session message listener. |
long |
getOutSeqNum()
Returns the sequence number of the next outgoing message. |
int |
getReasonableTransmissionTime()
Returns reasonable transmission time as % from heartbeat interval value. |
int |
getReceiveBufferSize()
Returns the size of the TCP socket buffer allocated for receiving data, in bytes. See also EngineSettings.getConnectionTcpReceiveBufferSize() . |
int |
getResendRequestMaximumRange()
Returns the maximum number of messages to be requested in one Resend Request (MsgType=2) message. |
SessionRole |
getRole()
Returns the session role. |
int |
getSendBufferSize()
Returns the size of the TCP socket buffer allocated for sending data, in bytes. See also EngineSettings.getConnectionTcpSendBufferSize() . |
String |
getSenderCompID()
Gets the assigned value used to identify firm sending message (the SenderCompID (tag=49) field value in outgoing messages). |
String |
getSenderLocationID()
Returns the value of SenderLocationID (142) field that will be set in all outgoing messages. |
String |
getSenderSubID()
Returns the value of SenderSubID (50) field that will be set in all outgoing messages. |
SessionState |
getState()
Returns session's state. |
Session.StateChangeListener |
getStateChangeListener()
Returns state change listener. |
SessionStorage |
getStorage()
Returns session storage. |
String |
getStorageID()
Returns the id of the session storage. |
String |
getTargetCompID()
Assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in outgoing messages). |
String |
getTargetLocationID()
Returns the value of TargetLocationID (143) field that will be set in all outgoing messages. |
String |
getTargetSubID()
Returns the value of TargetSubID (57) field that will be set in all outgoing messages. |
boolean |
getTcpNoDelay()
Tests if TCP_NODELAY socket option is enabled. |
String |
getToken()
|
Version |
getVersion()
Returns the session FIX version. |
Session.WarningListener |
getWarningListener()
Returns warning listener. |
boolean |
isDisposed()
|
boolean |
isSpecifyLastMsgSeqNumProcessed()
Returns the option to specify the LastMsgSeqNumProcessed (tag # 369) field on every message sent. |
void |
logonAsAcceptor()
Establishes FIX Connection as Acceptor. |
void |
logonAsInitiator(String host,
int port)
Establishes FIX Connection as Initiator using the default heartbeat value. |
void |
logonAsInitiator(String host,
int port,
boolean setResetSeqNumFlag)
Establishes FIX Connection as Initiator. |
void |
logonAsInitiator(String host,
int port,
boolean setResetSeqNumFlag,
Message customLogonMsg)
Establishes FIX Connection as Initiator using the custom Logon message. |
void |
logonAsInitiator(String host,
int port,
int heartBtInt)
Establishes FIX Connection as Initiator. |
void |
logonAsInitiator(String host,
int port,
int heartBtInt,
boolean setResetSeqNumFlag)
Establishes FIX Connection as Initiator. |
void |
logonAsInitiator(String host,
int port,
int heartBtInt,
boolean setResetSeqNumFlag,
Message customLogonMsg)
Establishes FIX Connection as Initiator using the custom Logon message. |
void |
logonAsInitiator(String host,
int port,
int heartBtInt,
Message customLogonMsg)
Establishes FIX Connection as Initiator using the custom Logon message. |
void |
logonAsInitiator(String host,
int port,
Message customLogonMsg)
Establishes FIX Connection as Initiator using the custom Logon message. |
void |
logout()
Terminates the FIX Connection. |
void |
logout(String text)
Terminates the FIX Connection. |
void |
reset()
Resets the sequence numbers to 1. |
void |
send(List<Message> messages)
Puts the messages to the outgoing queue. |
void |
send(Message message)
Puts the message to the outgoing queue. |
boolean |
send(Message message,
long timeout,
TimeUnit unit)
Puts the message to the outgoing queue. |
boolean |
sendNB(List<Message> messages)
Puts the messages to the outgoing queue. |
boolean |
sendNB(Message message)
Puts the message to the outgoing queue. |
void |
sendTestRequest(String testReqID,
long timeoutInMilliseconds)
Sends the Test Request <1> message. |
void |
setErrorListener(Session.ErrorListener listener)
Sets error listener. Warning. |
void |
setInboundApplicationMessageFactory(MessageFactory messageFactory)
Sets message factory to use for creating inbound application message instance. |
void |
setInboundApplicationMessageListener(Session.InboundApplicationMessageListener listener)
Sets inbound application message listener. Warning. |
void |
setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
|
void |
setInboundSessionMessageFactory(MessageFactory messageFactory)
Sets message factory to use for creating inbound session message instance. |
void |
setInboundSessionMessageListener(Session.InboundSessionMessageListener listener)
Sets inbound session message listener. Warning. |
void |
setInSeqNum(long seqNum)
Sets the expected sequence number of the next incoming message. |
void |
setLogInboundMessages(boolean logIncomingMessages)
Turns on or off the logging of incoming messages. |
void |
setMaxStorageSize(long maximumSize)
Sets the maximum size of the storage in messages. |
void |
setMessageResendingListener(Session.MessageResendingListener listener)
Sets message resending listener. Warning. |
void |
setNetworkInterface(SocketAddress bindAddress)
Sets the network interface bind address for establishing initiator session. |
void |
setOutboundApplicationMessageListener(Session.OutboundApplicationMessageListener listener)
Sets outbound application message listener. Warning. |
void |
setOutboundSessionMessageListener(Session.OutboundSessionMessageListener listener)
Sets outbound session message listener. Warning. |
void |
setOutSeqNum(long seqNum)
Sets the sequence number of the next outgoing message. |
void |
setReasonableTransmissionTime(int reasonableTransmissionTime)
Sets reasonable transmission time as % from heartbeat interval value. |
void |
setReceiveBufferSize(int size)
Sets the size of the TCP socket buffer allocated for receiving data, in bytes. See also EngineSettings.setConnectionTcpReceiveBufferSize(int) . |
void |
setResendRequestMaximumRange(int resendRequestMaximumRange)
Sets the maximum number of messages to be requested in one Resend Request (MsgType=2) message. |
void |
setSendBufferSize(int sendBufferSize)
Sets the size of the TCP socket buffer allocated for sending data, in bytes. See also EngineSettings.setConnectionTcpSendBufferSize(int) . |
void |
setSenderLocationID(String senderLocationID)
Sets the value of SenderLocationID (142) field that will be set in all outgoing messages. |
void |
setSenderSubID(String senderSubID)
Sets the value of SenderSubID (50) field that will be set in all outgoing messages. |
void |
setSpecifyLastMsgSeqNumProcessed(boolean specifyLastMsgSeqNumProcessed)
Sets the option to specify the LastMsgSeqNumProcessed (tag # 369) field on every message sent. |
void |
setSSLContext(SSLContext sslContext)
Sets the SSL context for establishing secure initiator session. |
void |
setStateChangeListener(Session.StateChangeListener listener)
Sets state change listener. Warning. |
void |
setTargetLocationID(String targetLocationID)
Sets the value of TargetLocationID (143) field that will be set in all outgoing messages. |
void |
setTargetSubID(String targetSubID)
Sets the value of TargetSubID (57) field that will be set in all outgoing messages. |
void |
setTcpNoDelay(boolean on)
Enable/disable TCP_NODELAY socket option (disable/enable Nagle's algorithm). |
void |
setWarningListener(Session.WarningListener listener)
Sets warning listener. Warning. |
String |
toString()
Returns a string that represents the current session. |
String |
toStringDetailed()
|
boolean |
useMillisecondsInSendingTimeField()
Returns 'true' if the milliseconds are set in the SendingTime(52) field, otherwise - 'false'. |
void |
useMillisecondsInSendingTimeField(boolean useMilliseconds)
Option to use the milliseconds in the SendingTime(52) field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int RESEND_REQUEST_MAXIMUM_RANGE_NO_LIMIT
public static final Session.InboundApplicationMessageListener NULL_INBOUND_APPLICATION_MESSAGE_LISTENER
public static final Session.InboundSessionMessageListener NULL_INBOUND_SESSION_MESSAGE_LISTENER
public static final Session.OutboundApplicationMessageListener NULL_OUTBOUND_APPLICATION_MESSAGE_LISTENER
public static final Session.OutboundSessionMessageListener NULL_OUTBOUND_SESSION_MESSAGE_LISTENER
public static final Session.MessageResendingListener NULL_MESSAGE_RESENDING_LISTENER
public static final Session.StateChangeListener NULL_STATE_CHANGE_LISTENER
public static final Session.WarningListener NULL_WARNING_LISTENER
public static final Session.ErrorListener NULL_ERROR_LISTENER
Constructor Detail |
---|
public Session(String senderCompID, String targetCompID, Version version)
SessionStorageType.FileBasedStorage
.
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionpublic Session(String senderCompID, String targetCompID, Version version, boolean keepSequenceNumbersAfterLogout)
SessionStorageType.FileBasedStorage
.
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionkeepSequenceNumbersAfterLogout
- option to keep sequence numbers after the logout exchangepublic Session(String senderCompID, String targetCompID, Version version, String token)
SessionStorageType.FileBasedStorage
.
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versiontoken
- session token that is used to distinguish sessions with the same SenderCompID and TargetCompIDpublic Session(String senderCompID, String targetCompID, Version version, boolean keepSequenceNumbersAfterLogout, String token)
SessionStorageType.FileBasedStorage
.
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionkeepSequenceNumbersAfterLogout
- option to keep sequence numbers after the logout exchangetoken
- Session token that is used to distinguish sessions with the same SenderCompID and TargetCompIDpublic Session(String senderCompID, String targetCompID, Version version, boolean keepSequenceNumbersAfterLogout, String token, boolean cleanStart)
SessionStorageType.FileBasedStorage
.
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionkeepSequenceNumbersAfterLogout
- Option to keep sequence numbers after the logout exchangetoken
- Session token that is used to distinguish sessions with the same SenderCompID and TargetCompIDcleanStart
- option to ignore the previous log files and start the FIX session anewpublic Session(String senderCompID, String targetCompID, Version version, SessionStorageType storageType)
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionstorageType
- session storage typepublic Session(String senderCompID, String targetCompID, Version version, boolean keepSequenceNumbersAfterLogout, String token, SessionStorageType storageType)
senderCompID
- assigned value used to identify firm sending message (the SenderCompID (tag=49) field value
in outgoing messages)targetCompID
- assigned value used to identify receiving firm (the TargetCompID (tag=56) field value in
outgoing messages)version
- FIX versionkeepSequenceNumbersAfterLogout
- Option to keep sequence numbers after the logout exchangetoken
- Session token that is used to distinguish sessions with the same SenderCompID and TargetCompIDstorageType
- session storage typepublic Session(SessionId sessionId, SessionStorageType storageType, OutQueue outQueue)
sessionId
- session id datastorageType
- session storage typeoutQueue
- outgoing queue implementationpublic Session(SessionId sessionId, boolean keepSequenceNumbersAfterLogout, SessionStorageType storageType, OutQueue outQueue)
sessionId
- session id datakeepSequenceNumbersAfterLogout
- Option to keep sequence numbers after the logout exchangestorageType
- session storage typeoutQueue
- outgoing queue implementationpublic Session(SessionId sessionId)
Method Detail |
---|
public SessionId getId()
public void breakConnection()
SessionState.DISCONNECTED
.
public void logonAsAcceptor()
Acceptor is the receiving party of the FIX session. It listens for the incoming connection on the pre-defined port. The acceptor has responsibility to perform first level authentication and formally declare the connection request "accepted" through transmission of an acknowledgment Logon message.
public boolean getTcpNoDelay()
public void setMaxStorageSize(long maximumSize)
maximumSize
- maximum size of the message storagepublic long getMaxStorageSize()
public void setTcpNoDelay(boolean on)
on
- true to enable TCP_NODELAY, false to disable.public void logonAsInitiator(String host, int port)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port number
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, boolean setResetSeqNumFlag)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numbersetResetSeqNumFlag
- Option to set the ResetSeqNumFlag(141) in the initial Logon(A) message.
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, int heartBtInt, boolean setResetSeqNumFlag)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numberheartBtInt
- Heartbeat interval (seconds)setResetSeqNumFlag
- Option to set the ResetSeqNumFlag(141) in the initial Logon(A) message.
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, int heartBtInt)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numberheartBtInt
- Heartbeat interval (seconds)
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, Message customLogonMsg)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numbercustomLogonMsg
- Custom Logon message
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, int heartBtInt, boolean setResetSeqNumFlag, Message customLogonMsg)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numberheartBtInt
- Heartbeat interval (seconds)setResetSeqNumFlag
- Option to set the ResetSeqNumFlag(141) in the initial Logon(A) message.customLogonMsg
- Custom Logon message
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, boolean setResetSeqNumFlag, Message customLogonMsg)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numbersetResetSeqNumFlag
- Option to set the ResetSeqNumFlag(141) in the initial Logon(A) message.customLogonMsg
- Custom Logon message
EngineException
- The FIX Connection cannot be establishedpublic void logonAsInitiator(String host, int port, int heartBtInt, Message customLogonMsg)
Initiator establishes the telecommunications link and initiates the session via transmission of the initial Logon message.
host
- Counterparty's host name or addressport
- Counterparty's port numberheartBtInt
- Heartbeat interval (seconds)customLogonMsg
- Custom Logon message
EngineException
- The FIX Connection cannot be establishedpublic void logout()
The initial Logout message is sent to the counterparty and the method blocks until the acknowledgement Logout message is received.
public void logout(String text)
The initial Logout message is sent to the counterparty and the method blocks until the acknowledgement Logout message is received.
text
- Free format text string that is sent to the counterparty in the Text (tag=58) field of the
initial Logout messagepublic void reset()
public void send(Message message)
message
- message to send
NullPointerException
- if message is null
EngineException
- if error occurspublic boolean sendNB(Message message)
message
- message to send
NullPointerException
- if message is null
EngineException
- if error occurspublic boolean send(Message message, long timeout, TimeUnit unit)
message
- message to sendtimeout
- how long to wait before giving up, in units of unitunit
- determines how to interpret the timeout parameter
NullPointerException
- if message or unit is null
EngineException
- if error occurspublic void send(List<Message> messages)
messages
- messages to send
NullPointerException
- if messages is null
IllegalArgumentException
- if messages is empty
EngineException
- if error occurspublic boolean sendNB(List<Message> messages)
messages
- messages to send
NullPointerException
- if messages is null
IllegalArgumentException
- if messages is empty
EngineException
- if error occurspublic void sendTestRequest(String testReqID, long timeoutInMilliseconds) throws EngineException
testReqID
- identifier included in Test Request <1> message to be returned in resulting Heartbeat (0)
message from the counterpartytimeoutInMilliseconds
- The maximum interval to wait until the reply is received from the counterparty.
EngineException
public Session.InboundApplicationMessageListener getInboundApplicationMessageListener()
public void setInboundApplicationMessageListener(Session.InboundApplicationMessageListener listener)
listener
- inbound application message listener or NULL_INBOUND_APPLICATION_MESSAGE_LISTENER
value to reset listener to defaultpublic Session.InboundSessionMessageListener getInboundSessionMessageListener()
public void setInboundSessionMessageListener(Session.InboundSessionMessageListener listener)
listener
- inbound session message listener or NULL_INBOUND_SESSION_MESSAGE_LISTENER
value to reset listener to defaultpublic Session.OutboundApplicationMessageListener getOutboundApplicationMessageListener()
public void setOutboundApplicationMessageListener(Session.OutboundApplicationMessageListener listener)
listener
- outbound application message listener or NULL_OUTBOUND_APPLICATION_MESSAGE_LISTENER
value to reset listener to defaultpublic Session.OutboundSessionMessageListener getOutboundSessionMessageListener()
public void setOutboundSessionMessageListener(Session.OutboundSessionMessageListener listener)
listener
- outbound session message listener or NULL_OUTBOUND_SESSION_MESSAGE_LISTENER
value
to reset listener to defaultpublic Session.MessageResendingListener getMessageResendingListener()
public void setMessageResendingListener(Session.MessageResendingListener listener)
listener
- message resending listener or NULL_MESSAGE_RESENDING_LISTENER
value to reset listener
to defaultpublic Session.ErrorListener getErrorListener()
public void setErrorListener(Session.ErrorListener listener)
listener
- error listener or NULL_ERROR_LISTENER
value to reset listener to defaultpublic Session.WarningListener getWarningListener()
public void setWarningListener(Session.WarningListener listener)
listener
- warning listener or NULL_WARNING_LISTENER
value to reset listener to defaultpublic Session.StateChangeListener getStateChangeListener()
public void setStateChangeListener(Session.StateChangeListener listener)
listener
- state change listener or NULL_STATE_CHANGE_LISTENER
value to reset listener to defaultpublic String getCounterpartyHost()
public int getCounterpartyPort()
public int getHeartBtInt()
public long getInSeqNum()
public void setInSeqNum(long seqNum)
seqNum
- sequence numberpublic boolean useMillisecondsInSendingTimeField()
public void useMillisecondsInSendingTimeField(boolean useMilliseconds)
public void setSpecifyLastMsgSeqNumProcessed(boolean specifyLastMsgSeqNumProcessed)
specifyLastMsgSeqNumProcessed
- whether to specify the LastMsgSeqNumProcessedpublic boolean isSpecifyLastMsgSeqNumProcessed()
public long getOutSeqNum()
public void setOutSeqNum(long seqNum)
seqNum
- sequence numberpublic String getSenderSubID()
public void setSenderSubID(String senderSubID)
senderSubID
- SenderSubID (50) field value.public String getTargetSubID()
public void setTargetSubID(String targetSubID)
targetSubID
- TargetSubID (57) field value.public String getSenderLocationID()
public void setSenderLocationID(String senderLocationID)
senderLocationID
- SenderLocationID (142) field value.public String getTargetLocationID()
public void setTargetLocationID(String targetLocationID)
targetLocationID
- TargetLocationID (143) field value.public SessionStorage getStorage()
public String getStorageID()
public SessionRole getRole()
public String getSenderCompID()
public String getTargetCompID()
public String getToken()
public Version getVersion()
public SessionState getState()
public boolean getLogInboundMessages()
public void setLogInboundMessages(boolean logIncomingMessages)
logIncomingMessages
- Option to log inbound messages.public String toString()
toString
in class Object
public String toStringDetailed()
public void dispose()
public void setSSLContext(SSLContext sslContext)
sslContext
- SSL contextpublic void setNetworkInterface(SocketAddress bindAddress)
bindAddress
- bind addresspublic void setInboundApplicationMessageFactory(MessageFactory messageFactory)
messageFactory
- message factorypublic void setInboundSessionMessageFactory(MessageFactory messageFactory)
messageFactory
- message factorypublic MessageFilter getInboundMessageLogFilter()
public void setInboundMessageLogFilter(MessageFilter inboundMessageLogFilter)
public long getOutboundQueueBytes()
public long getOutboundQueueCount()
public void setReceiveBufferSize(int size)
EngineSettings.setConnectionTcpReceiveBufferSize(int)
.
size
- TCP socket receive buffer sizepublic int getReceiveBufferSize()
EngineSettings.getConnectionTcpReceiveBufferSize()
.
public void setSendBufferSize(int sendBufferSize)
EngineSettings.setConnectionTcpSendBufferSize(int)
.
sendBufferSize
- TCP socket send buffer sizepublic int getSendBufferSize()
EngineSettings.getConnectionTcpSendBufferSize()
.
public void setReasonableTransmissionTime(int reasonableTransmissionTime)
reasonableTransmissionTime
- reasonable transmission timepublic int getReasonableTransmissionTime()
public Message findSentMessage(long messageSequenceNumber)
getStorage()
instead.
messageSequenceNumber
- message sequence number
IllegalArgumentException
- if messageSequenceNumber < 1public void setResendRequestMaximumRange(int resendRequestMaximumRange)
resendRequestMaximumRange
- maximum number of messages to be requested in one Resend Request or
RESEND_REQUEST_MAXIMUM_RANGE_NO_LIMIT
for no limit
IllegalArgumentException
- if resendRequestMaximumRange < 0public int getResendRequestMaximumRange()
RESEND_REQUEST_MAXIMUM_RANGE_NO_LIMIT
for no limitpublic boolean isDisposed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |