RTI Connext Modern C++ API  Version 5.3.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::core::status::ReliableWriterCacheChangedStatus Class Reference

<<extension>> Information about the status dds::core::status::StatusMask::reliable_writer_cache_changed() More...

#include <Status.hpp>

Inherits rti::core::NativeValueType< T, NATIVE_T, ADAPTER >.

Public Member Functions

EventCount32 empty_reliable_writer_cache () const
 The number of times the reliable writer's cache of unacknowledged samples has become empty.
 
EventCount32 full_reliable_writer_cache () const
 The number of times the reliable writer's cache, or send window, of unacknowledged samples has become full.
 
EventCount32 low_watermark_reliable_writer_cache () const
 The number of times the reliable writer's cache of unacknowledged samples has fallen to the low watermark.
 
EventCount32 high_watermark_reliable_writer_cache () const
 The number of times the reliable writer's cache of unacknowledged samples has risen to the high watermark.
 
int32_t unacknowledged_sample_count () const
 The current number of unacknowledged samples in the writer's cache.
 
int32_t unacknowledged_sample_count_peak () const
 The highest value that unacknowledged_sample_count has reached until now.
 

Detailed Description

<<extension>> Information about the status dds::core::status::StatusMask::reliable_writer_cache_changed()

Entity:
dds::pub::DataWriter
Listener:
dds::pub::DataWriterListener

A written sample is unacknowledged (and therefore accounted for in this status) if the writer is reliable and one or more readers matched with the writer has not yet sent an acknowledgement to the writer declaring that it has received the sample.

If the low watermark is zero and the unacknowledged sample count decreases to zero, both the low watermark and cache empty events are considered to have taken place. A single callback will be dispatched (assuming the user has requested one) that contains both status changes. The same logic applies when the high watermark is set equal to the maximum number of samples and the cache becomes full.

Member Function Documentation

EventCount32 rti::core::status::ReliableWriterCacheChangedStatus::empty_reliable_writer_cache ( ) const
inline

The number of times the reliable writer's cache of unacknowledged samples has become empty.

EventCount32 rti::core::status::ReliableWriterCacheChangedStatus::full_reliable_writer_cache ( ) const
inline

The number of times the reliable writer's cache, or send window, of unacknowledged samples has become full.

Applies to writer's cache when the send window is enabled (when both rti::core::RtpsReliableWriterProtocol::min_send_window_size and rti::core::RtpsReliableWriterProtocol::max_send_window_size are not dds::core::LENGTH_UNLIMITED).

Otherwise, applies when the number of unacknowledged samples has reached the send window limit.

EventCount32 rti::core::status::ReliableWriterCacheChangedStatus::low_watermark_reliable_writer_cache ( ) const
inline

The number of times the reliable writer's cache of unacknowledged samples has fallen to the low watermark.

A low watermark event will only be considered to have taken place when the number of unacknowledged samples in the writer's cache decreases to this value. A sample count that increases to this value will not result in a callback or in a change to the total count of low watermark events.

When the writer's send window is enabled, the low watermark is scaled down, if necessary, to fit within the current send window.

EventCount32 rti::core::status::ReliableWriterCacheChangedStatus::high_watermark_reliable_writer_cache ( ) const
inline

The number of times the reliable writer's cache of unacknowledged samples has risen to the high watermark.

A high watermark event will only be considered to have taken place when the number of unacknowledged sampled increases to this value. A sample count that was above this value and then decreases back to it will not trigger an event.

When the writer's send window is enabled, the high watermark is scaled down, if necessary, to fit within the current send window.

int32_t rti::core::status::ReliableWriterCacheChangedStatus::unacknowledged_sample_count ( ) const
inline

The current number of unacknowledged samples in the writer's cache.

A sample is considered unacknowledged if the writer has failed to receive an acknowledgement from one or more reliable readers matched to it.

int32_t rti::core::status::ReliableWriterCacheChangedStatus::unacknowledged_sample_count_peak ( ) const
inline

The highest value that unacknowledged_sample_count has reached until now.


RTI Connext Modern C++ API Version 5.3.1 Copyright © Mon Feb 19 2018 Real-Time Innovations, Inc