|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.epam.fixengine.session.AbstractFIXSession
public abstract class AbstractFIXSession
The abstract session implementation. Provides base functional for acceptor and initiator sessions.
| Nested Class Summary | |
|---|---|
protected class |
AbstractFIXSession.SessionParametersProxyAdaptorListener
|
| Field Summary | |
|---|---|
protected com.epam.fixengine.session.util.ConfigurationAdaptor |
configuration
|
protected static boolean |
DEBUG_ENABLED
|
protected boolean |
graceful
|
protected HandlerChain |
listener
|
protected static Log |
log
|
protected FIXMessageFactory |
messageFactory
|
protected Queue<FIXFieldListWithType> |
queue
|
protected Object |
sessionLock
|
protected SessionParameters |
sessionParameters
|
protected static boolean |
TRACE_ENABLED
|
protected FIXTransport |
transport
|
| Fields inherited from interface com.epam.fixengine.FIXSession |
|---|
DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC |
| Constructor Summary | |
|---|---|
AbstractFIXSession(FIXMessageFactory messageFactory,
SessionParameters sessionParameters,
HandlerChain fixSessionListener)
Creates the AbstractFIXSession . |
|
| Method Summary | |
|---|---|
void |
addSessionStateListener(com.epam.fixengine.session.FIXSessionStateListener stateListener)
|
void |
checkHasSessionSendOrReceivedTestRequest()
The method checks if TR send or received. |
void |
clearQueue()
Clears output message queue. |
protected void |
configureStateBeforeReset()
|
abstract void |
connect()
Connects to remote counterparty, if initiator or accepts incoming connection if acceptor. |
void |
disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription)
|
protected void |
disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean isGracefull,
boolean isForced)
|
protected void |
disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean isGracefull,
boolean isForced,
boolean continueReading)
|
void |
disconnect(String reason)
Disconnect the session. |
protected void |
disconnectTestRequestIsLost()
Disconnect the session if test request doesn't received. |
void |
dispose()
Disposes current session, removes its reference from GlobalSessionManager and frees all allocated resources. |
boolean |
equals(Object o)
|
void |
forcedDisconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean continueReading)
Gracefully disconnects current session but wait for answer forcedLogoffTimeout. |
Object |
getAttribute(String key)
Gets session attribute value. |
boolean |
getAttributeAsBool(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
|
long |
getAttributeAsLong(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
|
long |
getBytesRead()
Gets read bytes. |
long |
getBytesSent()
Gets send bytes. |
com.epam.fixengine.encryption.Encryption |
getEncryption()
|
ErrorHandler |
getErrorHandler()
Gets session error handler. |
long |
getEstablished()
Gets established session timestamp. |
ExtendedFIXSessionListener |
getExtendedFIXSessionListener()
Gets extended fix session listener. |
MessageStorage |
getIncomingMessageStorage()
Gets incoming message storage. |
com.epam.fixengine.session.DisconnectReason |
getLastDisconnectReason()
|
long |
getLastInMessageTimestamp()
Gets last received message timestamp. |
long |
getLastOutMessageTimestamp()
Gets time when the message is sent |
FIXMessageFactory |
getMessageFactory()
Gets message factory. |
protected HandlerChain |
getMessageHandlers()
Gets chain of message handlers. |
MessageValidator |
getMessageValidator()
Returns message validator. |
long |
getNoOfInMessages()
Gets number of received message. |
long |
getNoOfOutMessages()
Gets number of sent message. |
MessageStorage |
getOutgoingMessageStorage()
Gets outgoing message storage. |
int |
getQueuedMessagesCount()
|
RejectMessageListener |
getRejectMessageListener()
Gets reject message listener. |
com.epam.fixengine.session.SessionSequenceManager |
getSequenceManager()
|
SessionParameters |
getSessionParameters()
The returned value is cloned. |
SessionParameters |
getSessionParametersInstance()
Gets session parameter instance. |
SessionState |
getSessionState()
Returns session state. |
StorageFactory |
getStorageFactory()
Gets storage factory |
int |
hashCode()
|
protected void |
initSession()
Initializes the resources and sends a logon message. |
protected void |
initSessionInternal()
Initialize session internal. |
protected boolean |
isResetSeqNumFlagRequiredForInitLogon()
|
protected boolean |
isResetTimeMissed(long lastResetTime)
|
boolean |
isStatisticEnabled()
Shows statistics on or off. |
protected void |
loadSessionParametersFromFile()
Load session parameters. |
void |
markShutdownAsGraceful()
Marks the session shutdown as gracefully. |
FIXFieldList |
prepareMessage(FIXFieldList message,
MessageStructure structure)
Builds FIXFieldList object from FIXFieldList object. |
FIXFieldList |
prepareMessage(FIXFieldList message,
String type,
MessageStructure structure)
Builds FIXFieldList object from FIXFieldList object. |
FIXFieldList |
prepareMessage(String msgType,
MessageStructure userStructure)
Builds FIXFieldList object with specified type, message structure and prefilled header information |
FIXFieldList |
prepareMessageFromString(byte[] message,
MessageStructure structure)
Builds FIXFieldList object from String object. |
FIXFieldList |
prepareMessageFromString(byte[] message,
String type,
MessageStructure structure)
Builds FIXFieldList object from String object. |
abstract void |
reject(String reason)
Reject incoming connection for acceptor. |
void |
removeAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
|
void |
removeAttribute(String key)
Removes session attribute. |
void |
removeLongAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
|
void |
removeSessionStateListener(com.epam.fixengine.session.FIXSessionStateListener stateListener)
|
protected void |
resetSeqNumIfConfigured()
Resets seq num. |
void |
resetSequenceNumbers()
Allows user to reset sequences numbers by sending logon with 141=Y. |
void |
resetSequenceNumbers(boolean checkGapFillBefore)
Allows user to reset sequences numbers by sending logon with 141=Y. |
protected void |
resetTestRequestFlags()
|
protected void |
restoreSessionAfterReceivedTestRequest()
Restore the session if test request is received. |
void |
restoreSessionParameters()
Restore session parameters in file. |
void |
saveSessionParameters()
Save session parameters to file. |
boolean |
sendAsIs(FIXFieldList message)
Convenient method to send out FIX message based on the message type and message content. |
boolean |
sendAsIs(FIXFieldList message,
int options)
Convenient method to send out FIX message based on the message type and message content. |
boolean |
sendMessage(FIXFieldList message)
Convenient method to send out user built FIX message. |
boolean |
sendMessage(FIXFieldList message,
int optionMask)
Convenient method to send out user built FIX message. |
boolean |
sendMessage(String type,
FIXFieldList content)
Convenient method to send out FIX message based on the message type and message content. |
boolean |
sendMessage(String type,
FIXFieldList content,
int optionMask)
Convenient method to send out FIX message based on the message type and message content. |
int |
sendMessageAndGetQueueSize(FIXFieldList message,
int optionMask)
Do the same that FIXSession.sendMessage(FIXFieldList, int) and return queue size. |
int |
sendMessageAndGetQueueSize(String type,
FIXFieldList content,
int optionMask)
Do the same that FIXSession.sendMessage(String, FIXFieldList, int) and return queue size. |
boolean |
sendMessageOutOfTurn(String type,
FIXFieldList message)
Sends message out of turn. |
protected void |
sendTestRequest()
Send test request. |
boolean |
sendWithChanges(FIXFieldList content,
ChangesType allowedChangesType)
Convenient method to send out FIX message based on the message type and message content. |
boolean |
sendWithChanges(FIXFieldList content,
ChangesType allowedChangesType,
int options)
Convenient method to send out FIX message based on the message type and message content. |
int |
sendWithChangesAndGetQueueSize(FIXFieldList content,
ChangesType allowedChangesType)
|
int |
sendWithChangesAndGetQueueSize(FIXFieldList content,
ChangesType allowedChangesType,
int options)
Do the same that FIXSession.sendWithChanges(FIXFieldList, ChangesType, int) and return queue size. |
void |
setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr,
boolean value)
|
void |
setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr,
long value)
|
void |
setAttribute(String key,
Object object)
Sets session attribute. |
void |
setErrorHandler(ErrorHandler handler)
Sets error handler. |
void |
setFIXSessionListener(FIXSessionListener listener)
Sets FIXSession listener to monitor session status and receive incoming messages. |
protected void |
setLastDisconnectReason(com.epam.fixengine.session.DisconnectReason reason)
|
void |
setOutOfTurnMode(boolean mode)
Sets OutOf turn mode. |
protected void |
setPreLoggofSessionState(boolean forced,
boolean continueReading)
|
void |
setRejectMessageListener(RejectMessageListener listener)
Sets reject message listener. |
void |
setSequenceNumbers(int inSeqNum,
int outSeqNum)
Allows user to change sequences numbers for disconnected sessions. |
void |
setSessionState(SessionState sessionState)
Sets session state. |
void |
shutdown(boolean blocking)
Deprecated. |
void |
shutdown(com.epam.fixengine.session.DisconnectReason reason,
boolean blocking)
Shutdown the session. |
protected void |
startSession()
|
protected void |
storeProcessedSeqNumber()
Store the last processed seq number. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Log log
protected static final boolean DEBUG_ENABLED
protected static final boolean TRACE_ENABLED
protected FIXTransport transport
protected Queue<FIXFieldListWithType> queue
protected final HandlerChain listener
protected SessionParameters sessionParameters
protected final FIXMessageFactory messageFactory
protected boolean graceful
protected final Object sessionLock
protected final com.epam.fixengine.session.util.ConfigurationAdaptor configuration
| Constructor Detail |
|---|
public AbstractFIXSession(FIXMessageFactory messageFactory,
SessionParameters sessionParameters,
HandlerChain fixSessionListener)
AbstractFIXSession .
| Method Detail |
|---|
public com.epam.fixengine.session.SessionSequenceManager getSequenceManager()
public ExtendedFIXSessionListener getExtendedFIXSessionListener()
ExtendedFIXSession
getExtendedFIXSessionListener in interface ExtendedFIXSessionExtendedFIXSession.getExtendedFIXSessionListener()public StorageFactory getStorageFactory()
public RejectMessageListener getRejectMessageListener()
ExtendedFIXSession
getRejectMessageListener in interface ExtendedFIXSessionExtendedFIXSession.getRejectMessageListener()public ErrorHandler getErrorHandler()
ExtendedFIXSession
getErrorHandler in interface ExtendedFIXSessionExtendedFIXSession.getErrorHandler()public void setErrorHandler(ErrorHandler handler)
FIXSession
setErrorHandler in interface FIXSessionhandler - the error handlerFIXSession.setErrorHandler(com.epam.fixengine.ErrorHandler)public void setRejectMessageListener(RejectMessageListener listener)
FIXSession
setRejectMessageListener in interface FIXSessionlistener - the reject message listenerFIXSession.setRejectMessageListener(com.epam.fixengine.RejectMessageListener)public void markShutdownAsGraceful()
ExtendedFIXSession
markShutdownAsGraceful in interface ExtendedFIXSessionExtendedFIXSession.markShutdownAsGraceful();public void clearQueue()
ExtendedFIXSessionRejectMessageListener listener.
clearQueue in interface ExtendedFIXSessionExtendedFIXSession.clearQueue()public int getQueuedMessagesCount()
getQueuedMessagesCount in interface ExtendedFIXSessionpublic void setOutOfTurnMode(boolean mode)
ExtendedFIXSession
setOutOfTurnMode in interface ExtendedFIXSessionmode - the mode
public void resetSequenceNumbers()
throws IOException
FIXSession
resetSequenceNumbers in interface FIXSessionIOExceptionFIXSession.resetSequenceNumbers()
public void resetSequenceNumbers(boolean checkGapFillBefore)
throws IOException
FIXSession
resetSequenceNumbers in interface FIXSessioncheckGapFillBefore - - the flag indicates if needed to check the seq num.
If true the TR will be sent before introday logon otherwise only intraday logon will be sent.
IOExceptionFIXSession.resetSequenceNumbers(boolean)
public void setSequenceNumbers(int inSeqNum,
int outSeqNum)
throws IOException
FIXSession
setSequenceNumbers in interface FIXSessioninSeqNum - new incoming sequence number. If new value is < 0, then this parameter will be ignored.outSeqNum - new outgoing sequence number. If new value is < 0, then this parameter will be ignored.
IOException
protected void configureStateBeforeReset()
throws IOException
IOExceptionpublic void setFIXSessionListener(FIXSessionListener listener)
FIXSession
setFIXSessionListener in interface FIXSessionlistener - the user specified listenerFIXSession.setFIXSessionListener(FIXSessionListener)public MessageStorage getOutgoingMessageStorage()
ExtendedFIXSession
getOutgoingMessageStorage in interface ExtendedFIXSessionExtendedFIXSession.getOutgoingMessageStorage()public MessageStorage getIncomingMessageStorage()
ExtendedFIXSession
getIncomingMessageStorage in interface ExtendedFIXSessionExtendedFIXSession.getIncomingMessageStorage()
public void saveSessionParameters()
throws IOException
ExtendedFIXSession
saveSessionParameters in interface ExtendedFIXSessionIOException - if I/O error occurredExtendedFIXSession.saveSessionParameters()
public void restoreSessionParameters()
throws IOException
ExtendedFIXSession
restoreSessionParameters in interface ExtendedFIXSessionIOException - if I/O error occurredExtendedFIXSession.restoreSessionParameters()
public abstract void connect()
throws IOException
FIXSession
connect in interface FIXSessionIOException - I/O exception if error occurredFIXSession.connect()
public abstract void reject(String reason)
throws IOException
FIXSession
reject in interface FIXSessionIOException - I/O exception if error occurredFIXSession.reject(String)public SessionParameters getSessionParametersInstance()
ExtendedFIXSession
getSessionParametersInstance in interface ExtendedFIXSessionExtendedFIXSession.getSessionParametersInstance()public FIXMessageFactory getMessageFactory()
ExtendedFIXSession
getMessageFactory in interface ExtendedFIXSessionExtendedFIXSession.getMessageFactory()public SessionParameters getSessionParameters()
getSessionParameters in interface FIXSessionFIXSession.getSessionParameters()public SessionState getSessionState()
FIXSession
getSessionState in interface FIXSessionFIXSession.getSessionState()public void setSessionState(SessionState sessionState)
ExtendedFIXSession
setSessionState in interface ExtendedFIXSessionsessionState - the new session stateExtendedFIXSession.setSessionState(com.epam.fixengine.SessionState)public boolean isStatisticEnabled()
ExtendedFIXSession
isStatisticEnabled in interface ExtendedFIXSessionExtendedFIXSession.isStatisticEnabled()public long getBytesRead()
ExtendedFIXSession
getBytesRead in interface ExtendedFIXSessionExtendedFIXSession.getBytesRead()public long getEstablished()
ExtendedFIXSession
getEstablished in interface ExtendedFIXSessionExtendedFIXSession.getEstablished()public long getBytesSent()
ExtendedFIXSession
getBytesSent in interface ExtendedFIXSessionExtendedFIXSession.getBytesSent()public long getNoOfInMessages()
ExtendedFIXSession
getNoOfInMessages in interface ExtendedFIXSessionExtendedFIXSession.getNoOfInMessages()public long getNoOfOutMessages()
ExtendedFIXSession
getNoOfOutMessages in interface ExtendedFIXSessionExtendedFIXSession.getNoOfOutMessages()public long getLastInMessageTimestamp()
ExtendedFIXSession
getLastInMessageTimestamp in interface ExtendedFIXSessionExtendedFIXSession.getLastInMessageTimestamp()public long getLastOutMessageTimestamp()
ExtendedFIXSession
getLastOutMessageTimestamp in interface ExtendedFIXSessionExtendedFIXSession.getLastOutMessageTimestamp()protected HandlerChain getMessageHandlers()
protected void initSession()
throws IOException
IOException - - if I/O error occurred.protected boolean isResetSeqNumFlagRequiredForInitLogon()
protected void resetSeqNumIfConfigured()
throws IOException
IOExceptionprotected boolean isResetTimeMissed(long lastResetTime)
protected void initSessionInternal()
throws IOException
IOExceptionprotected void loadSessionParametersFromFile()
.
protected void startSession()
throws IOException
IOExceptionpublic void disconnect(String reason)
disconnect in interface FIXSessionreason - the reason, if parameter is not null,
the logof message will be send with 58=reason.FIXSession.disconnect(String)
public void disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription)
disconnect in interface ExtendedFIXSession
public void forcedDisconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean continueReading)
ExtendedFIXSession
forcedDisconnect in interface ExtendedFIXSessionreasonDescription - the reasoncontinueReading - if false then reading of incoming messages will be stopped. This can be used for prevent
reading of messages with broken sequencing.
protected void disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean isGracefull,
boolean isForced)
protected void disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription,
boolean isGracefull,
boolean isForced,
boolean continueReading)
@Deprecated public void shutdown(boolean blocking)
ExtendedFIXSession
shutdown in interface ExtendedFIXSessionblocking - If the parameter is true, the next call of method is blocking.
public void shutdown(com.epam.fixengine.session.DisconnectReason reason,
boolean blocking)
blocking is true, the next call of method is blocking.
shutdown in interface ExtendedFIXSessionblocking - the blocking parameterreason - disconnect reasonprotected void storeProcessedSeqNumber()
The method work only when last processed and last incoming seq nums are not equals.
protected void setPreLoggofSessionState(boolean forced,
boolean continueReading)
public boolean sendMessage(String type,
FIXFieldList content,
int optionMask)
FIXSessionmsgType is null, Engine sends the message as is;
msgType is "", Engine updates body length, sequence number, sending time and checksum fields;
content.
sendMessage in interface FIXSessiontype - the message type (Tag 35 content)content - the message contentoptionMask - FIXSession.SEND_SYNC or FIXSession.SEND_ASYNC
FIXSession.sendMessage(String, com.epam.fix.message.FIXFieldList)
public int sendMessageAndGetQueueSize(String type,
FIXFieldList content,
int optionMask)
ExtendedFIXSessionFIXSession.sendMessage(String, FIXFieldList, int) and return queue size.
sendMessageAndGetQueueSize in interface ExtendedFIXSessionFIXSession.sendMessage(String, FIXFieldList, int)
public boolean sendMessage(String type,
FIXFieldList content)
FIXSessionmsgType is null, Engine sends the message as is;
msgType is "", Engine updates body length, sequence number, sending time and checksum fields;
content.
sendMessage in interface FIXSessiontype - the message type (Tag 35 content)content - the message content
public boolean sendAsIs(FIXFieldList message,
int options)
FIXSession
sendAsIs in interface FIXSessionmessage - the message contentoptions - FIXSession.SEND_SYNC or FIXSession.SEND_ASYNC
public boolean sendAsIs(FIXFieldList message)
FIXSession
sendAsIs in interface FIXSessionmessage - the message content
public boolean sendWithChanges(FIXFieldList content,
ChangesType allowedChangesType,
int options)
FIXSession
sendWithChanges in interface FIXSessioncontent - the message contentallowedChangesType - the parameter takes the next values:options - FIXSession.SEND_SYNC or FIXSession.SEND_ASYNC
ChangesType
public int sendWithChangesAndGetQueueSize(FIXFieldList content,
ChangesType allowedChangesType,
int options)
ExtendedFIXSessionFIXSession.sendWithChanges(FIXFieldList, ChangesType, int) and return queue size.
sendWithChangesAndGetQueueSize in interface ExtendedFIXSessionFIXSession.sendWithChanges(FIXFieldList, ChangesType, int)
public boolean sendWithChanges(FIXFieldList content,
ChangesType allowedChangesType)
FIXSession
sendWithChanges in interface FIXSessioncontent - the message contentallowedChangesType - the parameter takes the next values:ChangesType
public int sendWithChangesAndGetQueueSize(FIXFieldList content,
ChangesType allowedChangesType)
public FIXFieldList prepareMessage(FIXFieldList message,
MessageStructure structure)
throws PreparedMessageException
FIXSession
prepareMessage in interface FIXSessionmessage - FIXFieldList objectstructure - message structure
PreparedMessageException - exceptionFIXSession.prepareMessage(FIXFieldList, com.epam.fix.message.MessageStructure)
public FIXFieldList prepareMessage(FIXFieldList message,
String type,
MessageStructure structure)
throws PreparedMessageException
FIXSession
prepareMessage in interface FIXSessionmessage - FIXFieldList objecttype - type of the messagestructure - message structure
PreparedMessageException - exceptionFIXSession.prepareMessage(FIXFieldList, String, com.epam.fix.message.MessageStructure)
public FIXFieldList prepareMessage(String msgType,
MessageStructure userStructure)
throws PreparedMessageException
FIXSession
prepareMessage in interface FIXSessionmsgType - message typeuserStructure - message structure
PreparedMessageExceptionFIXSession.prepareMessage(String, com.epam.fix.message.MessageStructure)
public FIXFieldList prepareMessageFromString(byte[] message,
MessageStructure structure)
throws PreparedMessageException
FIXSession
prepareMessageFromString in interface FIXSessionmessage - message stringstructure - message structure object
PreparedMessageException - exceptionFIXSession.prepareMessageFromString(byte[], com.epam.fix.message.MessageStructure)
public FIXFieldList prepareMessageFromString(byte[] message,
String type,
MessageStructure structure)
throws PreparedMessageException
FIXSession
prepareMessageFromString in interface FIXSessionmessage - message stringtype - message typestructure - message structure object
PreparedMessageException - exceptionFIXSession.prepareMessageFromString(byte[], String, com.epam.fix.message.MessageStructure)public boolean sendMessage(FIXFieldList message)
FIXSessionmessage .
sendMessage in interface FIXSessionmessage - the message
FIXSession.sendMessage(com.epam.fix.message.FIXFieldList)
public boolean sendMessage(FIXFieldList message,
int optionMask)
FIXSessionmessage .
sendMessage in interface FIXSessionmessage - the messageoptionMask - FIXSession.SEND_SYNC or FIXSession.SEND_ASYNC
public int sendMessageAndGetQueueSize(FIXFieldList message,
int optionMask)
ExtendedFIXSessionFIXSession.sendMessage(FIXFieldList, int) and return queue size.
sendMessageAndGetQueueSize in interface ExtendedFIXSessionFIXSession.sendMessage(FIXFieldList, int)
public boolean sendMessageOutOfTurn(String type,
FIXFieldList message)
ExtendedFIXSession
sendMessageOutOfTurn in interface ExtendedFIXSessiontype - the message typemessage - the message
FIXSession.sendMessage(String, com.epam.fix.message.FIXFieldList)public MessageValidator getMessageValidator()
FIXSession
getMessageValidator in interface FIXSessionFIXSession.getMessageValidator()public void dispose()
FIXSession
dispose in interface FIXSessionFIXSession.dispose()protected void sendTestRequest()
public void checkHasSessionSendOrReceivedTestRequest()
If session is not received any messages during HB interval the HB will be send and
If no response received session will be disconnected;
This is helper method for session task.
protected void disconnectTestRequestIsLost()
protected void restoreSessionAfterReceivedTestRequest()
protected void resetTestRequestFlags()
public void setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr,
long value)
setAttribute in interface ExtendedFIXSessionpublic void removeAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
public void removeLongAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
public long getAttributeAsLong(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
getAttributeAsLong in interface ExtendedFIXSession
public void setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr,
boolean value)
setAttribute in interface ExtendedFIXSessionpublic boolean getAttributeAsBool(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
getAttributeAsBool in interface ExtendedFIXSession
public void setAttribute(String key,
Object object)
ExtendedFIXSession
setAttribute in interface ExtendedFIXSessionkey - the attribute keyobject - the attribute valueExtendedFIXSession.setAttribute(String, Object)public Object getAttribute(String key)
ExtendedFIXSession
getAttribute in interface ExtendedFIXSessionkey - the attribute key
ExtendedFIXSession.getAttribute(String)public void removeAttribute(String key)
ExtendedFIXSession
removeAttribute in interface ExtendedFIXSessionkey - the attribute keyExtendedFIXSession.removeAttribute(String)public void addSessionStateListener(com.epam.fixengine.session.FIXSessionStateListener stateListener)
addSessionStateListener in interface com.epam.fixengine.session.SessionStateListenSupportpublic void removeSessionStateListener(com.epam.fixengine.session.FIXSessionStateListener stateListener)
removeSessionStateListener in interface com.epam.fixengine.session.SessionStateListenSupportpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic com.epam.fixengine.encryption.Encryption getEncryption()
getEncryption in interface ExtendedFIXSessionprotected void setLastDisconnectReason(com.epam.fixengine.session.DisconnectReason reason)
public com.epam.fixengine.session.DisconnectReason getLastDisconnectReason()
getLastDisconnectReason in interface ExtendedFIXSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||