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

This policy is useful for cases where a Topic is expected to have each instance updated periodically. More...

Public Member Functions

 Deadline (const dds::core::Duration &d=dds::core::Duration::infinite())
 Construct a Deadline with specified duration. More...
 
 Deadline (const Deadline &other)
 Copy constructor.
 
Deadlineperiod (const dds::core::Duration &d)
 Set the deadline period. More...
 
const dds::core::Duration period () const
 Access the dealine period. More...
 

Detailed Description

This policy is useful for cases where a Topic is expected to have each instance updated periodically.

On the publishing side this setting establishes a contract that the application must meet. On the subscribing side the setting establishes a minimum requirement for the remote publishers that are expected to supply the data values. When the Service matches a DataWriter and a DataReader it checks whether the settings are compatible (i.e., offered deadline period<= requested deadline period) if they are not, the two entities are informed (via the listener or condition mechanism) of the incompatibility of the QoS settings and communication will not occur. Assuming that the reader and writer ends have compatible settings, the fulfillment of this contract is monitored by the Service and the application is informed of any violations by means of the proper listener or condition. The value offered is considered compatible with the value requested if and only if the inequality "offered deadline period <= requested deadline period" evaluates to TRUE. The setting of the DEADLINE policy must be set consistently with that of the TIME_BASED_FILTER. For these two policies to be consistent the settings must be such that "deadline period >= minimum_separation".

Constructor & Destructor Documentation

◆ Deadline()

dds::core::policy::Deadline::Deadline ( const dds::core::Duration d = dds::core::Duration::infinite())
explicit

Construct a Deadline with specified duration.

Default duration is infinite.

Member Function Documentation

◆ period() [1/2]

Deadline& dds::core::policy::Deadline::period ( const dds::core::Duration d)

Set the deadline period.

◆ period() [2/2]

const dds::core::Duration dds::core::policy::Deadline::period ( ) const

Access the dealine period.


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