OnixS C++ CME iLink 3 Binary Order Entry Handler  1.18.3
API Documentation
MessageBatchCombiner Class Reference

#include <OnixS/CME/iLink3/messaging/MessageBatch.h>

Public Member Functions

 MessageBatchCombiner ()=default
 
template<typename MessageTypeT , size_t MaxMessageSize = GetMaxMessageSize<typename HeldAdapter<MessageTypeT>::SbeType, DefaultMaxGroupItems>::Size, typename MessageInitializer = FieldsInitPolicy>
void add (MessageBatch< MessageTypeT, MaxMessageSize, MessageInitializer > &batch)
 
template<typename MessageTypeT , size_t MaxMessageSize = GetMaxMessageSize<typename HeldAdapter<MessageTypeT>::SbeType, DefaultMaxGroupItems>::Size, typename MessageInitializer = FieldsInitPolicy>
void add (MessageBatch< MessageTypeT, MaxMessageSize, MessageInitializer > &&batch)=delete
 
template<typename MessageTypeT , size_t MaxMessageSize = GetMaxMessageSize<typename HeldAdapter<MessageTypeT>::SbeType, DefaultMaxGroupItems>::Size, typename MessageInitializer = FieldsInitPolicy>
void add (MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &holder)
 
template<typename MessageTypeT , size_t MaxMessageSize = GetMaxMessageSize<typename HeldAdapter<MessageTypeT>::SbeType, DefaultMaxGroupItems>::Size, typename MessageInitializer = FieldsInitPolicy>
void add (MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &&holder)=delete
 
void clear ()
 
 MessageBatchCombiner (const MessageBatchCombiner &)=delete
 
MessageBatchCombineroperator= (const MessageBatchCombiner &)=delete
 

Friends

class OnixS::CME::iLink3::Session
 
class OnixS::CME::iLink3::Messaging::MessageBatchChecker
 

Detailed Description

Warning
The class does not copy combined messages and does not store them internally. Therefore, the lifetime of combined messages should be greater or equal to the lifetime of this class instance.

Definition at line 139 of file MessageBatch.h.

Constructor & Destructor Documentation

MessageBatchCombiner ( )
default

Creates an empty message batch combiner.

The add method should be used to fill the batch.

Member Function Documentation

void add ( MessageBatch< MessageTypeT, MaxMessageSize, MessageInitializer > &  batch)
inline

Adds the message batch to the array of combined messages.

Updates headers of SBE messages to be ready for sending.

Definition at line 156 of file MessageBatch.h.

void add ( MessageBatch< MessageTypeT, MaxMessageSize, MessageInitializer > &&  batch)
delete
void add ( MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &  holder)
inline

Adds the message to the array of combined messages.

Updates headers of the SBE message to be ready for sending.

Definition at line 174 of file MessageBatch.h.

void add ( MessageHolder< MessageTypeT, MaxMessageSize, MessageInitializer > &&  holder)
delete
void clear ( )
inline

Removes all combined messages.

Definition at line 187 of file MessageBatch.h.

MessageBatchCombiner& operator= ( const MessageBatchCombiner )
delete

Friends And Related Function Documentation

Definition at line 198 of file MessageBatch.h.

friend class OnixS::CME::iLink3::Session
friend

Definition at line 197 of file MessageBatch.h.


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