![]() |
OpenSplice ISO C++ 2 DCPS
v7.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
#include "CorePolicy.hpp"
Public Member Functions | |
LatencyBudget (const dds::core::Duration &duration=dds::core::Duration::zero()) | |
LatencyBudget (const LatencyBudget &other) | |
LatencyBudget & | duration (const dds::core::Duration &duration) |
const dds::core::Duration | duration () const |
bool | operator!= (const Value &other) const |
D * | operator-> () |
const D * | operator-> () const |
bool | operator== (const Value &other) const |
Specifies the maximum acceptable additional delay to the typical transport delay from the time the data is written until the data is delivered at the DataReader and the application is notified of this fact.
Value | Meaning | Concerns | RxO | Changeable |
---|---|---|---|---|
A duration: duration | Specifies the maximum acceptable delay from the time the data is written until the data is inserted in the receiver's application-cache and the receiving application is notified of the fact. This policy is a hint to the Service, not something that must be monitored or enforced. The Service is not required to track or alert the user of any violation. The default value of the duration is zero indicating that the delay should be minimised. | Topic, DataReader, DataWriter | Yes | Yes |
This policy provides a means for the application to indicate to the middleware the “urgency” of the data-communication. By having a non-zero duration the Service can optimise its internal operation.
This policy is considered a hint. There is no specified mechanism as to how the service should take advantage of this hint.
The value offered is considered compatible with the value requested if and only if the inequality “offered duration <= requested duration” evaluates to ‘TRUE.’
Definition at line 449 of file CorePolicy.hpp.
|
explicit |
Creates a LatencyBudget QoS instance
duration | duration |
Definition at line 379 of file CorePolicyImpl.hpp.
dds::core::policy::LatencyBudget::LatencyBudget | ( | const LatencyBudget & | other | ) |
Copies a LatencyBudget QoS instance
other | the LatencyBudget QoS instance to copy |
Definition at line 382 of file CorePolicyImpl.hpp.
LatencyBudget & dds::core::policy::LatencyBudget::duration | ( | const dds::core::Duration & | duration | ) |
const dds::core::Duration dds::core::policy::LatencyBudget::duration | ( | ) | const |
|
inherited |
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |
The operator->() is provided to be able to directly invoke functions on the delegate.
The decision to provide direct access to the delegate was motivated by the need for providing a way that was not invasive with respect to the CXXDDS API and yet would allow for vendor-specific extension. Thus vendor-specific extensions can be invoked on the Value and on all its subclasses as follows:
|
inherited |