olp-cpp-sdk 1.25.0
Loading...
Searching...
No Matches
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 Metadata & GetMetaData () const
 Gets the Metadata instance of this message.
 
void SetMetaData (Metadata value)
 Sets the Metadata instance of this message.
 
const StreamOffset & GetOffset () const
 Gets the offset in a specific partition of the stream layer.
 
void SetOffset (StreamOffset value)
 Sets the StreamOffset instance of this message.
 
const Data & GetData () const
 Gets the actual content of this message.
 

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: