OnixS C++ CME MDP Conflated TCP Handler  1.3.1
API Documentation
SessionStorage Class Referenceabstract

#include <OnixS/CME/ConflatedTCP/SessionStorage.h>

Classes

struct  RawMessagePointer
 

Public Member Functions

virtual ~SessionStorage () ONIXS_CONFLATEDTCP_DEFAULT
 
virtual const std::string & id () const =0
 
virtual UInt64 uuid () const =0
 
virtual void uuid (UInt64 value)=0
 
virtual UInt64 previousUuid () const =0
 
virtual void previousUuid (UInt64 value)=0
 
virtual SeqNumber inSeqNum () const =0
 
virtual void inSeqNum (SeqNumber msgSeqNum)=0
 
virtual SeqNumber previousSeqNum () const =0
 
virtual void previousSeqNum (SeqNumber msgSeqNum)=0
 
virtual SeqNumber outSeqNum () const =0
 
virtual void outSeqNum (SeqNumber msgSeqNum)=0
 
virtual bool terminated () const =0
 
virtual void terminated (bool terminated)=0
 
virtual Timestamp sessionCreationTime () const =0
 
virtual void sessionCreationTime (Timestamp)=0
 
virtual void clear ()=0
 
virtual void close (bool terminate=false, bool doBackup=false)=0
 
virtual void storeInboundMessage (const RawMessagePointer &rawMsg, SeqNumber msgSeqNum, bool isOriginal, Timestamp messageReceivingUtcTimestamp=Timestamp())=0
 
virtual void storeOutboundMessage (const RawMessagePointer &rawMsg, SeqNumber msgSeqNum, bool isOriginal=true, bool warmUp=false, Timestamp messageSendingUtcTimestamp=Timestamp())=0
 
virtual void flush ()=0
 

Detailed Description

Definition at line 65 of file SessionStorage.h.

Constructor & Destructor Documentation

virtual ~SessionStorage ( )
virtual

Destructor.

Member Function Documentation

virtual void clear ( )
pure virtual

Clears the storage.

virtual void close ( bool  terminate = false,
bool  doBackup = false 
)
pure virtual

Closes the storage.

virtual void flush ( )
pure virtual

Flushes all internal buffers.

virtual const std::string& id ( ) const
pure virtual
Returns
Storage Id.
virtual SeqNumber inSeqNum ( ) const
pure virtual
Returns
the expected sequence number of the next inbound message.
virtual void inSeqNum ( SeqNumber  msgSeqNum)
pure virtual

Sets the expected sequence number of the next inbound message.

virtual SeqNumber outSeqNum ( ) const
pure virtual
Returns
the sequence number of the next outgoing message.
virtual void outSeqNum ( SeqNumber  msgSeqNum)
pure virtual

Sets the sequence number of the next outgoing message.

virtual SeqNumber previousSeqNum ( ) const
pure virtual
Returns
the sequence number of the last business message published by CME with the PreviousUUID.

If no business message was published, the value is zero.

virtual void previousSeqNum ( SeqNumber  msgSeqNum)
pure virtual

Sets the sequence number of the last business message published by CME with the PreviousUUID.

virtual UInt64 previousUuid ( ) const
pure virtual
Returns
The UUID from the previously Established session.
  • This can be the CME assigned default UUID=0 for messages published by CME before first Negotiation of customer at the beginning of the week.
  • This can be the last UUID as used by the customer from the previously Established session.
virtual void previousUuid ( UInt64  value)
pure virtual

Sets the UUID from the previously Established session.

virtual Timestamp sessionCreationTime ( ) const
pure virtual
Returns
the session creation time.
virtual void sessionCreationTime ( Timestamp  )
pure virtual

Sets the session creation time.

virtual void storeInboundMessage ( const RawMessagePointer rawMsg,
SeqNumber  msgSeqNum,
bool  isOriginal,
Timestamp  messageReceivingUtcTimestamp = Timestamp() 
)
pure virtual

Logs the given inbound message.

virtual void storeOutboundMessage ( const RawMessagePointer rawMsg,
SeqNumber  msgSeqNum,
bool  isOriginal = true,
bool  warmUp = false,
Timestamp  messageSendingUtcTimestamp = Timestamp() 
)
pure virtual

Logs the given outgoing message.

virtual bool terminated ( ) const
pure virtual
Returns
true if the logical session that used this storage was terminated and the storage can be cleaned up, otherwise - false.
virtual void terminated ( bool  terminated)
pure virtual

Sets the Session Termination status.

virtual UInt64 uuid ( ) const
pure virtual
Returns
Universally Unique Identifier (UUID).
virtual void uuid ( UInt64  value)
pure virtual

Sets Universally Unique Identifier (UUID).


The documentation for this class was generated from the following file: