public class AutoreconnectFIXSession extends InitiatorFIXSession implements BackupFIXSession
AbstractFIXSession.ConsumingControlTransportWrapper
Modifier and Type | Field and Description |
---|---|
protected static Log |
log |
protected static int |
NO_AUTORECONNECT |
configuration, DEBUG_ENABLED, graceful, listener, messageFactory, preferredSendingMode, queue, runtimeState, sentTRNum, sequenceManager, sessionLock, sessionParameters, testRequestTime, TRACE_ENABLED, transport
DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC
Constructor and Description |
---|
AutoreconnectFIXSession(FIXMessageFactory factory,
SessionParameters sessionParameters,
HandlerChain fixSessionListener) |
Modifier and Type | Method and Description |
---|---|
protected void |
connectInternal() |
protected void |
disconnect(DisconnectReason reasonType,
String reasonDescription,
boolean isGracefull,
boolean isForced,
boolean continueReading) |
protected void |
initTransport() |
boolean |
isRunningOnBackup()
Returns true, if session connected to backup host.
|
void |
setFIXSessionListener(FIXSessionListener listener)
Sets FIXSession listener to monitor session
status and receive incoming messages.
|
protected void |
startSession() |
void |
switchToBackUp()
The method, switch current connection to backup.
|
void |
switchToPrimary()
The method, switch current connection to primary.
|
connect, disconnect, dispose, getTransport, init, reject, setSessionState
addInSessionLevelMessageListener, addOutSessionLevelMessageListener, addSessionStateListener, addUserGlobalMessageHandler, backupStorages, checkHasSessionSendOrReceivedTestRequest, checkSessionInactiveAndSendHbt, clearQueue, disconnect, disconnect, disconnect, disconnectTestRequestIsLost, equals, forcedDisconnect, getAttribute, getAttribute, getAttributeAsBool, getAttributeAsLong, getBytesRead, getBytesSent, getConfiguration, getEncryption, getErrorHandler, getEstablished, getExtendedFIXSessionListener, getFIXSessionOutOfSyncListener, getIncomingMessageStorage, getInSeqNum, getLastDisconnectReason, getLastInMessageTimestamp, getLastOutMessageTimestamp, getMessageFactory, getMessageHandlers, getMessageQueue, getMessageValidator, getNoOfInMessages, getNoOfOutMessages, getOutgoingMessageStorage, getOutSeqNum, getQueuedMessagesCount, getRejectMessageListener, getRuntimeState, getSequenceManager, getSessionParameters, getSessionParametersInstance, getSessionState, getSlowConsumerListener, getStorageFactory, hashCode, initSessionInternal, initSessionRuntimeState, isHbtControlInPumper, isResetSeqNumFlagRequiredForInitLogon, 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, setFIXSessionOutOfSyncListener, setInSeqNum, setLastDisconnectReason, setOutOfTurnMode, setOutSeqNum, setPreLogoffSessionState, setRejectMessageListener, setSequenceNumbers, setSlowConsumerListener, shutdown, shutdown, subscribeForAttributeChanges, toString, unlockSending
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAndRemoveAttribute
protected static final Log log
protected static final int NO_AUTORECONNECT
public AutoreconnectFIXSession(FIXMessageFactory factory, SessionParameters sessionParameters, HandlerChain fixSessionListener)
protected void initTransport()
initTransport
in class InitiatorFIXSession
public void setFIXSessionListener(FIXSessionListener listener)
FIXSession
setFIXSessionListener
in interface FIXSession
setFIXSessionListener
in class AbstractFIXSession
listener
- the user specified listenerFIXSession.setFIXSessionListener(FIXSessionListener)
protected void disconnect(DisconnectReason reasonType, String reasonDescription, boolean isGracefull, boolean isForced, boolean continueReading)
disconnect
in class AbstractFIXSession
protected void startSession() throws IOException
startSession
in class AbstractFIXSession
IOException
protected void connectInternal()
connectInternal
in class InitiatorFIXSession
public void switchToBackUp()
BackupFIXSession
switchToBackUp
in interface BackupFIXSession
public void switchToPrimary()
BackupFIXSession
switchToPrimary
in interface BackupFIXSession
public boolean isRunningOnBackup()
BackupFIXSession
isRunningOnBackup
in interface BackupFIXSession
Copyright © 2000–2022 EPAM Systems. All rights reserved.