RTI Connext Modern C++ API  Version 5.2.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
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)
 
 OwnershipStrength (int32_t strength)
 Creates an instance with the specified strength value.
 
OwnershipStrengthvalue (int32_t strength)
 Sets the ownership strength to arbitrate among multiple writers.
 
int32_t value () const
 Getter (see setter with the same name)
 

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

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

Creates an instance with the default strength (0)

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

Creates an instance with the specified strength value.

Member Function Documentation

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]

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

Getter (see setter with the same name)


RTI Connext Modern C++ API Version 5.2.0 Copyright © Sun Jun 21 2015 Real-Time Innovations, Inc