CoreDX DDS Modern C++ API
Public Member Functions | List of all members
dds::core::policy::TransportPriority Class Reference

The purpose of this QoS is to allow the application to take advantage of transports capable of sending messages with different priorities. More...

Public Member Functions

 TransportPriority (int32_t prio=0)
 Specify a specific transport priority value. More...
 
 TransportPriority (const TransportPriority &other)
 Copy constructor.
 
TransportPriorityvalue (int32_t prio)
 Modify the priority value. More...
 
int32_t value () const
 Access the priority value. More...
 

Detailed Description

The purpose of this QoS is to allow the application to take advantage of transports capable of sending messages with different priorities.

This policy is considered a hint. The policy depends on the ability of the underlying transports to set a priority on the messages they send. Any value within the range of a 32-bit signed integer may be chosen; higher values indicate higher priority. However, any further interpretation of this policy is specific to a particular transport and a particular implementation of the Service. For example, a particular transport is permitted to treat a range of priority values as equivalent to one another. It is expected that during transport configuration the application would provide a mapping between the values of the TRANSPORT_PRIORITY set on DataWriter and the values meaningful to each transport. This mapping would then be used by the infrastructure when propagating the data written by the DataWriter.

Constructor & Destructor Documentation

◆ TransportPriority()

dds::core::policy::TransportPriority::TransportPriority ( int32_t  prio = 0)
explicit

Specify a specific transport priority value.

Default is zero.

Member Function Documentation

◆ value() [1/2]

TransportPriority& dds::core::policy::TransportPriority::value ( int32_t  prio)

Modify the priority value.

◆ value() [2/2]

int32_t dds::core::policy::TransportPriority::value ( ) const

Access the priority value.


© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.