Class ChannelDescriptor

Class Documentation

class ChannelDescriptor

A description of a channel. This will be constructed by the SDK and passed to an implementation of a SinkChannelFilterFn.

Public Functions

std::string_view topic() const noexcept

Get the topic of the channel descriptor.

std::string_view messageEncoding() const noexcept

Get the message encoding of the channel descriptor.

inline std::string_view message_encoding() const noexcept

Deprecated:

Use messageEncoding() instead.

std::optional<std::map<std::string, std::string>> metadata() const noexcept

Get the metadata for the channel descriptor.

std::optional<Schema> schema() const noexcept

Get the schema of the channel descriptor.