public interface ExtendedFIXSession extends FIXSession
DEFAULT_SENDING_OPTIONS, SEND_ASYNC, SEND_SYNC
Modifier and Type | Method and Description |
---|---|
void |
clearQueue()
Clears output message queue.
|
void |
disconnect(DisconnectReason reasonType,
String reasonDescription) |
void |
forcedDisconnect(DisconnectReason reasonType,
String reason,
boolean continueReading)
Gracefully disconnects current session but wait for answer forcedLogoffTimeout.
|
default Object |
getAndRemoveAttribute(String key) |
Object |
getAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute key) |
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.
|
FIXSessionOutOfSyncListener |
getFIXSessionOutOfSyncListener() |
MessageStorage |
getIncomingMessageStorage()
Gets incoming message storage.
|
DisconnectReason |
getLastDisconnectReason() |
long |
getLastInMessageTimestamp()
Gets last received message timestamp.
|
long |
getLastOutMessageTimestamp()
Gets time when the message is sent
|
FIXMessageFactory |
getMessageFactory()
Gets message factory.
|
Queue<FIXFieldListWithType> |
getMessageQueue()
Gets internal message queue.
|
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.
|
FIXSessionRuntimeState |
getRuntimeState()
Gets session parameter instance.
|
SessionParameters |
getSessionParametersInstance()
Gets session parameter instance.
|
boolean |
isStatisticEnabled()
Shows statistics on or off.
|
void |
lockSending() |
void |
markShutdownAsGraceful()
Marks the session shutdown as gracefully.
|
void |
reinit()
Reset session state and reinit it from stored.
|
void |
removeAttribute(String key)
Removes session attribute.
|
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(com.epam.fixengine.session.ExtendedFIXSessionAttribute key,
Object object) |
void |
setAttribute(String key,
Object object)
Sets session attribute.
|
void |
setFIXSessionOutOfSyncListener(FIXSessionOutOfSyncListener listener) |
void |
setOutOfTurnMode(boolean mode)
Sets OutOf turn mode.
|
void |
setSessionState(SessionState sessionState)
Sets session state.
|
void |
shutdown(boolean blocking)
Deprecated.
|
void |
shutdown(DisconnectReason reason,
boolean blocking)
Shutdown the session with specified reason.
|
void |
subscribeForAttributeChanges(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr,
com.epam.fixengine.session.ExtendedFIXSessionAttributeListener listener) |
void |
unlockSending() |
addInSessionLevelMessageListener, addOutSessionLevelMessageListener, addUserGlobalMessageHandler, connect, disconnect, dispose, getInSeqNum, getMessageValidator, getOutSeqNum, getSessionParameters, getSessionState, init, prepareMessage, prepareMessage, prepareMessage, prepareMessageFromString, prepareMessageFromString, reject, resetSequenceNumbers, resetSequenceNumbers, sendAsIs, sendAsIs, sendMessage, sendMessage, sendMessage, sendMessage, sendWithChanges, sendWithChanges, setErrorHandler, setFIXSessionListener, setInSeqNum, setOutSeqNum, setRejectMessageListener, setSequenceNumbers, setSlowConsumerListener
ExtendedFIXSessionListener getExtendedFIXSessionListener()
void reinit() throws IOException
IOException
@Deprecated void shutdown(boolean blocking)
blocking
- If the parameter is true, the next call of method is blocking.void shutdown(DisconnectReason reason, boolean blocking)
reason
- disconnect reasonblocking
- If the parameter is true, the next call of method is blocking.void disconnect(DisconnectReason reasonType, String reasonDescription)
void forcedDisconnect(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()
FIXSessionRuntimeState getRuntimeState()
MessageStorage getIncomingMessageStorage()
MessageStorage getOutgoingMessageStorage()
Queue<FIXFieldListWithType> getMessageQueue()
void saveSessionParameters() 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 valuevoid setAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute key, Object object)
Object getAttribute(String key)
key
- the attribute keyObject getAttribute(com.epam.fixengine.session.ExtendedFIXSessionAttribute 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 keyvoid subscribeForAttributeChanges(com.epam.fixengine.session.ExtendedFIXSessionAttribute attr, com.epam.fixengine.session.ExtendedFIXSessionAttributeListener listener)
boolean sendMessageOutOfTurn(String msgType, FIXFieldList message)
msgType
- the message typemessage
- the messagevoid 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.
TODO: @return true if session was able to reject all messages and clean queue (enableMessageRejecting option is
enabled)com.epam.fixengine.encryption.Encryption getEncryption()
DisconnectReason getLastDisconnectReason()
void setFIXSessionOutOfSyncListener(FIXSessionOutOfSyncListener listener)
FIXSessionOutOfSyncListener getFIXSessionOutOfSyncListener()
void lockSending()
void unlockSending()
Copyright © 2000–2022 EPAM Systems. All rights reserved.