public interface SessionFactory
| Modifier and Type | Method and Description |
|---|---|
Session |
build()
Builds the Session.
|
static SessionFactory |
createProtocolSessionFactory(java.lang.String host,
int port) |
SessionFactory |
setBackPressureNotificationHandler(BackPressureNotificationHandler backPressureNotificationHandler)
Optional.
|
SessionFactory |
setHeartbeatInterval(int heartbeatIntervalSeconds)
Optional.
|
SessionFactory |
setResetSeqNum(boolean resetSeqNum)
Optional.
|
SessionFactory |
setTcpReceiveBufferSizeHint(int tcpBufferReceiveSizeHint)
Optional.
|
SessionFactory |
setTcpSendBufferSizeHint(int tcpSendBufferSizeHint)
Optional.
|
SessionFactory |
with(NextExpectedMessageSequenceNumberStore incomingMsgSeqNumStore)
Required.
|
SessionFactory |
with(NextOutgoingMessageSequenceNumberStore outgoingMsgSeqNumStore)
Required.
|
SessionFactory |
with(java.lang.String venueName,
com.marketfactory.protocol.sbe4.SessionType sessionType)
Required.
|
SessionFactory |
withCallbackHandler(CallbackHandler callbackHandler)
Required.
|
SessionFactory |
withConnection(Connection connection)
Optional.
|
SessionFactory |
withCredentials(java.lang.String username,
java.lang.String password)
Required.
|
static SessionFactory createProtocolSessionFactory(java.lang.String host, int port)
SessionFactory withCredentials(java.lang.String username, java.lang.String password)
username - username to use to initiateLogonpassword - password to use to initiateLogonSessionFactory with(java.lang.String venueName, com.marketfactory.protocol.sbe4.SessionType sessionType)
venueName - venue to connect osessionType - service type to connect toSessionFactory with(NextOutgoingMessageSequenceNumberStore outgoingMsgSeqNumStore)
outgoingMsgSeqNumStore - to use for this sessionSessionFactory with(NextExpectedMessageSequenceNumberStore incomingMsgSeqNumStore)
incomingMsgSeqNumStore - to use for this sessionSessionFactory withCallbackHandler(CallbackHandler callbackHandler)
callbackHandler - handlerSessionFactory setBackPressureNotificationHandler(BackPressureNotificationHandler backPressureNotificationHandler)
backPressureNotificationHandler - handler to notify on session back pressure eventsSessionFactory setHeartbeatInterval(int heartbeatIntervalSeconds)
LogonEncoder.heartBtIntMinValue() ()} and
LogonEncoder.heartBtIntMaxValue()
If not set, defaults to ProtocolSessionFactory.DEFAULT_HEARTBEAT_INTERVAL_SECONDSheartbeatIntervalSeconds - seconds to set heartbeat interval toSessionFactory setResetSeqNum(boolean resetSeqNum)
resetSeqNum - true to reset sequence numbers, false to leave client and server sequence numbersSessionFactory setTcpSendBufferSizeHint(int tcpSendBufferSizeHint)
StandardSocketOptions.SO_SNDBUFtcpSendBufferSizeHint - bytes to set the TCP send buffer toSessionFactory setTcpReceiveBufferSizeHint(int tcpBufferReceiveSizeHint)
StandardSocketOptions.SO_RCVBUFtcpBufferReceiveSizeHint - bytes to set the TCP receive buffer toSessionFactory withConnection(Connection connection)
NonblockingSocketChannelConnectionconnection - connection to useSession build()