RTI Connext Modern C++ API Version 7.3.0
dds::core::policy::OwnershipStrength Class Reference

Specifies the value of the strength used to arbitrate among multiple dds::pub::DataWriter objects that attempt to modify the same instance of a data type (identified by its dds::topic::Topic and key). More...

#include <dds/core/policy/CorePolicy.hpp>

Public Member Functions

 OwnershipStrength ()
 Creates an instance with the default strength (0) More...
 
 OwnershipStrength (int32_t strength)
 Creates an instance with the specified strength value. More...
 
OwnershipStrengthvalue (int32_t strength)
 Sets the ownership strength to arbitrate among multiple writers. More...
 
int32_t value () const
 Getter (see setter with the same name) More...
 

Detailed Description

Specifies the value of the strength used to arbitrate among multiple dds::pub::DataWriter objects that attempt to modify the same instance of a data type (identified by its dds::topic::Topic and key).

This policy only applies if the OWNERSHIP policy is of kind dds::core::policy::OwnershipKind_def::EXCLUSIVE.

Entity:
dds::pub::DataWriter
Properties:
RxO = N/A
Changeable = YES

The value of the OWNERSHIP_STRENGTH is used to determine the ownership of a data instance (identified by the key). The arbitration is performed by the dds::sub::DataReader.

See also
EXCLUSIVE ownership

Constructor & Destructor Documentation

◆ OwnershipStrength() [1/2]

dds::core::policy::OwnershipStrength::OwnershipStrength ( )
inline

Creates an instance with the default strength (0)

◆ OwnershipStrength() [2/2]

dds::core::policy::OwnershipStrength::OwnershipStrength ( int32_t  strength)
inlineexplicit

Creates an instance with the specified strength value.

Member Function Documentation

◆ value() [1/2]

OwnershipStrength & dds::core::policy::OwnershipStrength::value ( int32_t  strength)
inline

Sets the ownership strength to arbitrate among multiple writers.

[default] 0

[range] [0, 1 million]

◆ value() [2/2]

int32_t dds::core::policy::OwnershipStrength::value ( ) const
inline

Getter (see setter with the same name)