Package com.epam.fixengine.session
Class AcceptorFIXSession
java.lang.Object
com.epam.fixengine.session.AbstractFIXSession
com.epam.fixengine.session.AcceptorFIXSession
- All Implemented Interfaces:
FIXSession
,ExtendedFIXSession
,com.epam.fixengine.session.SessionStateListenSupport
-
Nested Class Summary
Nested classes/interfaces inherited from class com.epam.fixengine.session.AbstractFIXSession
AbstractFIXSession.ConsumingControlTransportWrapper
-
Field Summary
Fields inherited from class com.epam.fixengine.session.AbstractFIXSession
configuration, graceful, listener, messageFactory, preferredSendingMode, queue, runtimeState, sentTRNum, sequenceManager, sessionLock, sessionParameters, testRequestTime, transport
Fields inherited from interface com.epam.fixengine.FIXSession
DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptorFIXSession
(FIXMessageFactory messageFactory, SessionParameters sessionParameters, HandlerChain fixSessionListener, FIXTransport transport) -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect()
Connects to remote counterparty, if initiator or accepts incoming connection if acceptor.The returned value is cloned.boolean
boolean
boolean
protected boolean
void
reinitSession
(SessionParameters inSessionParameters, FIXTransport transport) void
Reject incoming connection for acceptor.protected void
updateSessionParameters
(SessionParameters newParams, SessionParameters oldParams) Methods inherited from class com.epam.fixengine.session.AbstractFIXSession
addInSessionLevelMessageListener, addOutSessionLevelMessageListener, addSessionStateListener, addUserGlobalMessageHandler, backupStorages, checkHasSessionSendOrReceivedTestRequest, checkSessionInactiveAndSendHbt, clearQueue, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectTestRequestIsLost, dispose, equals, forcedDisconnect, getAttribute, getAttribute, getAttributeAsBool, getAttributeAsLong, getBytesRead, getBytesSent, getConfiguration, getEncryption, getErrorHandler, getEstablished, getExtendedFIXSessionListener, getFIXSessionOutOfSyncListener, getIncomingMessageStorage, getInSeqNum, getLastDisconnectReason, getLastInMessageTimestamp, getLastOutMessageTimestamp, getMessageFactory, getMessageHandlers, getMessageQueue, getMessageValidator, getMessageValidator, getMessageValidator, getNoOfInMessages, getNoOfOutMessages, getOutgoingMessageStorage, getOutSeqNum, getQueuedMessagesCount, getRejectMessageListener, getRuntimeState, getSequenceManager, getSessionParametersInstance, getSessionState, getSlowConsumerListener, getStorageFactory, hashCode, init, initSessionInternal, initSessionRuntimeState, isHbtControlInPumper, isStatisticEnabled, lockSending, markShutdownAsGraceful, onDisconnect, prepareForConnect, prepareMessage, prepareMessage, prepareMessage, prepareMessageFromString, prepareMessageFromString, reinit, removeAttribute, removeAttribute, removeLongAttribute, removeSessionStateListener, resetInitialization, resetSequenceNumbers, resetSequenceNumbers, resetTestRequestFlags, restoreSessionAfterReceivedTestRequest, saveSessionParameters, sendAsIs, sendAsIs, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageAndGetQueueSize, sendMessageAndGetQueueSize, sendMessageOutOfTurn, sendTestRequest, sendWithChanges, sendWithChanges, sendWithChangesAndGetQueueSize, sendWithChangesAndGetQueueSize, setAttribute, setAttribute, setAttribute, setAttribute, setErrorHandler, setFIXSessionListener, setFIXSessionOutOfSyncListener, setInSeqNum, setLastDisconnectReason, setOutOfTurnMode, setOutSeqNum, setPreLogoffSessionState, setRejectMessageListener, setSequenceNumbers, setSessionState, setSlowConsumerListener, shutdown, shutdown, startSession, subscribeForAttributeChanges, toString, unlockSending
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.epam.fixengine.session.ExtendedFIXSession
getAndRemoveAttribute
-
Constructor Details
-
AcceptorFIXSession
public AcceptorFIXSession(FIXMessageFactory messageFactory, SessionParameters sessionParameters, HandlerChain fixSessionListener, FIXTransport transport)
-
-
Method Details
-
reinitSession
-
updateSessionParameters
-
getSessionParameters
Description copied from class:AbstractFIXSession
The returned value is cloned.- Specified by:
getSessionParameters
in interfaceFIXSession
- Overrides:
getSessionParameters
in classAbstractFIXSession
- Returns:
- SessionParameters - session parameters
- See Also:
-
connect
Description copied from interface:FIXSession
Connects to remote counterparty, if initiator or accepts incoming connection if acceptor.- Specified by:
connect
in interfaceFIXSession
- Specified by:
connect
in classAbstractFIXSession
- Throws:
IOException
- I/O exception if error occurred- See Also:
-
reject
Description copied from interface:FIXSession
Reject incoming connection for acceptor. Not applicable for initiator.- Specified by:
reject
in interfaceFIXSession
- Specified by:
reject
in classAbstractFIXSession
- Throws:
IOException
- I/O exception if error occurred- See Also:
-
isResetSeqNumFlagRequiredForInitLogon
protected boolean isResetSeqNumFlagRequiredForInitLogon()- Overrides:
isResetSeqNumFlagRequiredForInitLogon
in classAbstractFIXSession
-
isLastResetOccurredInTradingPeriod
public boolean isLastResetOccurredInTradingPeriod() -
isLastResetOccurredAfterPeriodBegin
public boolean isLastResetOccurredAfterPeriodBegin() -
isLastResetOccurredAfterPeriodEnd
public boolean isLastResetOccurredAfterPeriodEnd()
-