Struct PublisherOptions

Struct Documentation

struct PublisherOptions

This struct is used to configure the publisher.

Public Functions

cxx::Serialization serialize() const noexcept

serialization of the PublisherOptions

Public Members

uint64_t historyCapacity = {0U}

The size of the history chunk queue.

iox::NodeName_t nodeName = {""}

The name of the node where the publisher should belong to.

bool offerOnCreate = {true}

The option whether the publisher should already be offered when creating it.

ConsumerTooSlowPolicy subscriberTooSlowPolicy = {ConsumerTooSlowPolicy::DISCARD_OLDEST_DATA}

The option whether the publisher should block when the subscriber queue is full.

Public Static Functions

static cxx::expected<PublisherOptions, cxx::Serialization::Error> deserialize(const cxx::Serialization &serialized) noexcept

deserialization of the PublisherOptions