public class ProtocolSessionFactory extends java.lang.Object implements SessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateProtocolSessionFactorypublic ProtocolSessionFactory withCredentials(java.lang.String username, java.lang.String password)
SessionFactorywithCredentials in interface SessionFactoryusername - username to use to initiateLogonpassword - password to use to initiateLogonpublic ProtocolSessionFactory with(java.lang.String venueName, com.marketfactory.protocol.sbe4.SessionType sessionType)
SessionFactorywith in interface SessionFactoryvenueName - venue to connect osessionType - service type to connect topublic ProtocolSessionFactory with(NextOutgoingMessageSequenceNumberStore outgoingMsgSeqNumStore)
SessionFactorywith in interface SessionFactoryoutgoingMsgSeqNumStore - to use for this sessionpublic ProtocolSessionFactory with(NextExpectedMessageSequenceNumberStore incomingMsgSeqNumStore)
SessionFactorywith in interface SessionFactoryincomingMsgSeqNumStore - to use for this sessionpublic ProtocolSessionFactory withCallbackHandler(CallbackHandler callbackHandler)
SessionFactorywithCallbackHandler in interface SessionFactorycallbackHandler - handlerpublic ProtocolSessionFactory setBackPressureNotificationHandler(BackPressureNotificationHandler backPressureNotificationHandler)
SessionFactorysetBackPressureNotificationHandler in interface SessionFactorybackPressureNotificationHandler - handler to notify on session back pressure eventspublic ProtocolSessionFactory setHeartbeatInterval(int heartbeatIntervalSeconds)
SessionFactoryLogonEncoder.heartBtIntMinValue() ()} and
LogonEncoder.heartBtIntMaxValue()
If not set, defaults to DEFAULT_HEARTBEAT_INTERVAL_SECONDSsetHeartbeatInterval in interface SessionFactoryheartbeatIntervalSeconds - seconds to set heartbeat interval topublic ProtocolSessionFactory setResetSeqNum(boolean resetSeqNum)
SessionFactorysetResetSeqNum in interface SessionFactoryresetSeqNum - true to reset sequence numbers, false to leave client and server sequence numberspublic ProtocolSessionFactory setTcpSendBufferSizeHint(int tcpSendBufferSizeHint)
SessionFactoryStandardSocketOptions.SO_SNDBUFsetTcpSendBufferSizeHint in interface SessionFactorytcpSendBufferSizeHint - bytes to set the TCP send buffer topublic ProtocolSessionFactory setTcpReceiveBufferSizeHint(int tcpBufferReceiveSizeHint)
SessionFactoryStandardSocketOptions.SO_RCVBUFsetTcpReceiveBufferSizeHint in interface SessionFactorytcpBufferReceiveSizeHint - bytes to set the TCP receive buffer topublic ProtocolSessionFactory withConnection(Connection connection)
SessionFactoryNonblockingSocketChannelConnectionwithConnection in interface SessionFactoryconnection - connection to usepublic Session build()
SessionFactorybuild in interface SessionFactory