OnixS C++ CME MDP Conflated TCP Handler 1.3.6
API Documentation
Loading...
Searching...
No Matches
SessionStorage Class Referenceabstract

Classes

struct  RawMessagePointer

Public Member Functions

virtual ~SessionStorage ()=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

◆ ~SessionStorage()

virtual ~SessionStorage ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clear()

virtual void clear ( )
pure virtual

Clears the storage.

◆ close()

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

Closes the storage.

◆ flush()

virtual void flush ( )
pure virtual

Flushes all internal buffers.

◆ id()

virtual const std::string & id ( ) const
pure virtual
Returns
Storage Id.

◆ inSeqNum() [1/2]

virtual SeqNumber inSeqNum ( ) const
pure virtual
Returns
the expected sequence number of the next inbound message.

◆ inSeqNum() [2/2]

virtual void inSeqNum ( SeqNumber msgSeqNum)
pure virtual

Sets the expected sequence number of the next inbound message.

◆ outSeqNum() [1/2]

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

◆ outSeqNum() [2/2]

virtual void outSeqNum ( SeqNumber msgSeqNum)
pure virtual

Sets the sequence number of the next outgoing message.

◆ previousSeqNum() [1/2]

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.

◆ previousSeqNum() [2/2]

virtual void previousSeqNum ( SeqNumber msgSeqNum)
pure virtual

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

◆ previousUuid() [1/2]

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.

◆ previousUuid() [2/2]

virtual void previousUuid ( UInt64 value)
pure virtual

Sets the UUID from the previously Established session.

◆ sessionCreationTime() [1/2]

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

◆ sessionCreationTime() [2/2]

virtual void sessionCreationTime ( Timestamp )
pure virtual

Sets the session creation time.

◆ storeInboundMessage()

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

Logs the given inbound message.

◆ storeOutboundMessage()

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

Logs the given outgoing message.

◆ terminated() [1/2]

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.

◆ terminated() [2/2]

virtual void terminated ( bool terminated)
pure virtual

Sets the Session Termination status.

◆ uuid() [1/2]

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

◆ uuid() [2/2]

virtual void uuid ( UInt64 value)
pure virtual

Sets Universally Unique Identifier (UUID).