B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Engine::RejectMsgStorage Class Referenceabstract

Abstract storage of the rejected messages. More...

#include <B2BITS_MsgStorage.h>

Public Member Functions

virtual bool markRejected (int nSeqNum, const std::string &msg, const std::string &newMsg)=0
 Mask message as rejected to make it not resendable.
 
virtual ~RejectMsgStorage ()
 Destructor.
 

Detailed Description

Abstract storage of the rejected messages.

Constructor & Destructor Documentation

◆ ~RejectMsgStorage()

virtual Engine::RejectMsgStorage::~RejectMsgStorage ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ markRejected()

virtual bool Engine::RejectMsgStorage::markRejected ( int nSeqNum,
const std::string & msg,
const std::string & newMsg )
pure virtual

Mask message as rejected to make it not resendable.

Optionally replace the message body with not resendable message (heartbeat) if the replacement is supported by the storage. The messages must be of the same size. Return true if the message is found and marked successfully.

Parameters
nSeqNum- message number
msg- message to reject
newMsg- message that replaces the rejected message (heartbeat)