olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::dataservice::read::model::Message Class Referencefinal

Represents a message read from a stream layer. More...

#include <Messages.h>

Public Member Functions

const MetadataGetMetaData () const
 Gets the Metadata instance of this message. More...
 
void SetMetaData (Metadata value)
 Sets the Metadata instance of this message. More...
 
const StreamOffsetGetOffset () const
 Gets the offset in a specific partition of the stream layer. More...
 
void SetOffset (StreamOffset value)
 Sets the StreamOffset instance of this message. More...
 
const Data & GetData () const
 Gets the actual content of this message. More...
 

Detailed Description

Represents a message read from a stream layer.

Member Function Documentation

◆ GetData()

const Data& olp::dataservice::read::model::Message::GetData ( ) const
inline

Gets the actual content of this message.

Returns
The data content of this message represented as a vector of bytes.

◆ GetMetaData()

const Metadata& olp::dataservice::read::model::Message::GetMetaData ( ) const
inline

Gets the Metadata instance of this message.

Returns
The Metadata instance.

◆ GetOffset()

const StreamOffset& olp::dataservice::read::model::Message::GetOffset ( ) const
inline

Gets the offset in a specific partition of the stream layer.

Returns
The StreamOffset instance.

◆ SetMetaData()

void olp::dataservice::read::model::Message::SetMetaData ( Metadata  value)
inline

Sets the Metadata instance of this message.

Parameters
valueThe Metadata instance.

◆ SetOffset()

void olp::dataservice::read::model::Message::SetOffset ( StreamOffset  value)
inline

Sets the StreamOffset instance of this message.

Parameters
valueThe StreamOffset instance.

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