17.1.1.3.9. DurabilityQosPolicy

class eprosima::fastdds::dds::DurabilityQosPolicy : public eprosima::fastdds::dds::Parameter_t, public eprosima::fastdds::dds::QosPolicy

This policy expresses if the data should ‘outlive’ their writing time.

Note

Immutable Qos Policy

Public Functions

DurabilityQosPolicy()

Constructor.

~DurabilityQosPolicy() = default

Destructor.

fastrtps::rtps::DurabilityKind_t durabilityKind() const

Translates kind to rtps layer equivalent

Return

fastrtps::rtps::DurabilityKind_t

void durabilityKind(const fastrtps::rtps::DurabilityKind_t new_kind)

Set kind passing the rtps layer equivalent kind

Parameters
  • new_kind: fastrtps::rtps::DurabilityKind_t

void clear() override

Clears the QosPolicy object.

Public Members

DurabilityQosPolicyKind_t kind

DurabilityQosPolicyKind.

By default the value for DataReaders: VOLATILE_DURABILITY_QOS, for DataWriters TRANSIENT_LOCAL_DURABILITY_QOS.