|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedFIXSession
Extended fix session.
Field Summary |
---|
Fields inherited from interface com.epam.fixengine.FIXSession |
---|
DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC |
Method Summary | |
---|---|
void |
clearQueue()
Clears output message queue. |
void |
disconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reasonDescription)
|
void |
forcedDisconnect(com.epam.fixengine.session.DisconnectReason reasonType,
String reason,
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. |
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. |
SessionParameters |
getSessionParametersInstance()
Gets session parameter instance. |
boolean |
isStatisticEnabled()
Shows statistics on or off. |
void |
markShutdownAsGraceful()
Marks the session shutdown as gracefully. |
void |
removeAttribute(String key)
Removes session attribute. |
void |
restoreSessionParameters()
Restore session parameters in file. |
void |
saveSessionParameters()
Save session parameters to file. |
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 msgType,
FIXFieldList message)
Sends message out of turn. |
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 |
setOutOfTurnMode(boolean mode)
Sets OutOf turn mode. |
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 with specified reason. |
Methods inherited from interface com.epam.fixengine.FIXSession |
---|
connect, disconnect, dispose, getMessageValidator, getSessionParameters, getSessionState, prepareMessage, prepareMessage, prepareMessage, prepareMessageFromString, prepareMessageFromString, reject, resetSequenceNumbers, resetSequenceNumbers, sendAsIs, sendAsIs, sendMessage, sendMessage, sendMessage, sendMessage, sendWithChanges, sendWithChanges, setErrorHandler, setFIXSessionListener, setRejectMessageListener, setSequenceNumbers |
Method Detail |
---|
ExtendedFIXSessionListener getExtendedFIXSessionListener()
@Deprecated void shutdown(boolean blocking)
blocking
- If the parameter is true, the next call of method is blocking.void shutdown(com.epam.fixengine.session.DisconnectReason reason, boolean blocking)
reason
- disconnect reasonblocking
- If the parameter is true, the next call of method is blocking.void disconnect(com.epam.fixengine.session.DisconnectReason reasonType, String reasonDescription)
void forcedDisconnect(com.epam.fixengine.session.DisconnectReason reasonType, String reason, boolean continueReading)
reason
- the reasoncontinueReading
- if false then reading of incoming messages will be stopped. This can be used for prevent
reading of messages with broken sequencing.void setSessionState(SessionState sessionState)
sessionState
- the new session stateSessionParameters getSessionParametersInstance()
MessageStorage getIncomingMessageStorage()
MessageStorage getOutgoingMessageStorage()
void saveSessionParameters() throws IOException
IOException
- if I/O error occurredvoid restoreSessionParameters() throws IOException
IOException
- if I/O error occurredFIXMessageFactory getMessageFactory()
long getLastInMessageTimestamp()
long getEstablished()
boolean isStatisticEnabled()
getBytesSent()
,
getBytesRead()
,
getNoOfInMessages()
,
getNoOfOutMessages()
long getBytesSent()
long getBytesRead()
long getNoOfInMessages()
long getNoOfOutMessages()
long getLastOutMessageTimestamp()
void setAttribute(String key, Object object)
key
- the attribute keyobject
- the attribute valueObject getAttribute(String key)
key
- the attribute key
long getAttributeAsLong(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
void setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr, long value)
void setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr, boolean value)
boolean getAttributeAsBool(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr)
void removeAttribute(String key)
key
- the attribute keyboolean sendMessageOutOfTurn(String msgType, FIXFieldList message)
msgType
- the message typemessage
- the message
void setOutOfTurnMode(boolean mode)
mode
- the modeint sendMessageAndGetQueueSize(String type, FIXFieldList content, int optionMask)
FIXSession.sendMessage(String, FIXFieldList, int)
and return queue size.
FIXSession.sendMessage(String, FIXFieldList, int)
int sendWithChangesAndGetQueueSize(FIXFieldList content, ChangesType allowedChangesType, int options)
FIXSession.sendWithChanges(FIXFieldList, ChangesType, int)
and return queue size.
FIXSession.sendWithChanges(FIXFieldList, ChangesType, int)
int sendMessageAndGetQueueSize(FIXFieldList message, int optionMask)
FIXSession.sendMessage(FIXFieldList, int)
and return queue size.
FIXSession.sendMessage(FIXFieldList, int)
int getQueuedMessagesCount()
ErrorHandler getErrorHandler()
RejectMessageListener getRejectMessageListener()
void markShutdownAsGraceful()
void clearQueue()
RejectMessageListener
listener.
com.epam.fixengine.encryption.Encryption getEncryption()
com.epam.fixengine.session.DisconnectReason getLastDisconnectReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |