public interface SessionBuilder
static SessionBuilder createSessionBuilder()
SessionBuilder withHost(java.lang.String host, int port)
host - hostport - portSessionBuilder withCredentials(java.lang.String username, java.lang.String password)
username - username to use to initiateLogonpassword - password to use to initiateLogonSessionBuilder withVenue(java.lang.String venueName, com.marketfactory.protocol.sbe4.SessionType sessionType)
venueName - venue to connect osessionType - service type to connect toSessionBuilder withNextOutgoingMessageSequenceNumberStore(NextOutgoingMessageSequenceNumberStore outgoingMsgSeqNumStore)
outgoingMsgSeqNumStore - to use for this sessionSessionBuilder withNextExpectedMessageSequenceNumberStore(NextExpectedMessageSequenceNumberStore incomingMsgSeqNumStore)
incomingMsgSeqNumStore - to use for this sessionSessionBuilder withCallbackHandler(CallbackHandler callbackHandler)
callbackHandler - handlerSessionBuilder withBackPressureNotificationHandler(BackPressureNotificationHandler backPressureNotificationHandler)
backPressureNotificationHandler - handler to notify on session back pressure eventsSessionBuilder withHeartbeatInterval(int heartbeatIntervalSeconds)
LogonEncoder.heartBtIntMinValue() ()} and
LogonEncoder.heartBtIntMaxValue()
If not set, defaults to SessionBuilderFactory.DEFAULT_HEARTBEAT_INTERVAL_SECONDSheartbeatIntervalSeconds - seconds to set heartbeat interval toSessionBuilder withResetSeqNum(boolean resetSeqNum)
resetSeqNum - true to reset sequence numbers, false to leave client and server sequence numbersSessionBuilder withTcpSendBufferSizeHint(int tcpSendBufferSizeHint)
StandardSocketOptions.SO_SNDBUFtcpSendBufferSizeHint - bytes to set the TCP send buffer toSessionBuilder withTcpReceiveBufferSizeHint(int tcpBufferReceiveSizeHint)
StandardSocketOptions.SO_RCVBUFtcpBufferReceiveSizeHint - bytes to set the TCP receive buffer toSession build()