|
llfix
Low-latency FIX engine
|
Interface for custom FIX message persistence plugins. More...
#include <message_persist_plugin.h>
Public Member Functions | |
| virtual void | persist_incoming_message (const std::string_view &session_name, uint32_t sequence_number, const char *buffer, std::size_t buffer_size)=0 |
| Persists an incoming FIX message. More... | |
| virtual void | persist_outgoing_message (const std::string_view &session_name, uint32_t sequence_number, const char *buffer, std::size_t buffer_size, bool successfully_transmitted)=0 |
| Persists an outgoing FIX message. More... | |
Interface for custom FIX message persistence plugins.
MessagePersistPlugin allows users to implement custom persistence logic for FIX messages
To create a custom message persister, derive from this interface and implement both persist methods:
The plugin can be enabled by calling:
|
pure virtual |
Persists an incoming FIX message.
This method is invoked for every FIX message received by the engine
| session_name | Logical FIX session name. |
| sequence_number | FIX message sequence number. |
| buffer | Pointer to the raw FIX message buffer. |
| buffer_size | Size of the FIX message buffer in bytes. |
|
pure virtual |
Persists an outgoing FIX message.
This method is invoked for every FIX message sent by the engine. The persistence callback includes information about whether the message was successfully transmitted.
| session_name | Logical FIX session name. |
| sequence_number | FIX message sequence number. |
| buffer | Pointer to the raw FIX message buffer. |
| buffer_size | Size of the FIX message buffer in bytes. |
| successfully_transmitted | Indicates whether the message was successfully sent to the peer. |