19.1.1.7.9. DurabilityQosPolicy

class 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

inline DurabilityQosPolicy()

Constructor.

virtual ~DurabilityQosPolicy() = default

Destructor.

inline fastdds::rtps::DurabilityKind_t durabilityKind() const

Translates kind to rtps layer equivalent

Returns:

fastdds::rtps::DurabilityKind_t

inline void durabilityKind(const fastdds::rtps::DurabilityKind_t new_kind)

Set kind passing the rtps layer equivalent kind

Parameters:

new_kind – fastdds::rtps::DurabilityKind_t

inline virtual 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.