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

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

#include <Status.hpp>

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

Public Member Functions

EventCount32 total_count () const
 The total cumulative number of ServiceRequests that have been accepted by a dds::pub::DataWriter.
 
EventCount32 current_count () const
 The current number of ServiceRequests that have been accepted by this dds::pub::DataWriter.
 
dds::core::InstanceHandle last_request_handle () const
 A handle to the last rti::topic::ServiceRequest that caused the dds::pub::DataWriter's status to change.
 
rti::core::ServiceRequestId service_id () const
 ID of the service to which the accepted Request belongs.
 

Detailed Description

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

Currently, the only service that causes the ServiceRequestAcceptedStatus to be triggered is the rti::sub::TopicQuery service. A rti::topic::ServiceRequest is accepted when a dds::pub::DataWriter matches with a dds::sub::DataReader that has created a rti::sub::TopicQuery.

This status is also changed (and the listener, if any, called) when a ServiceRequest has been cancelled, or deleted. This will happen when a dds::sub::DataReader deletes a TopicQuery using rti::sub::TopicQuery::close().

Member Function Documentation

EventCount32 rti::core::status::ServiceRequestAcceptedStatus::total_count ( ) const
inline

The total cumulative number of ServiceRequests that have been accepted by a dds::pub::DataWriter.

This number increases whenever a new request is accepted. It does not change when a request is cancelled.

EventCount32 rti::core::status::ServiceRequestAcceptedStatus::current_count ( ) const
inline

The current number of ServiceRequests that have been accepted by this dds::pub::DataWriter.

This number increases when a new request is accepted and decreases when an existing request is cancelled.

dds::core::InstanceHandle rti::core::status::ServiceRequestAcceptedStatus::last_request_handle ( ) const
inline

A handle to the last rti::topic::ServiceRequest that caused the dds::pub::DataWriter's status to change.

rti::core::ServiceRequestId rti::core::status::ServiceRequestAcceptedStatus::service_id ( ) const
inline

ID of the service to which the accepted Request belongs.

See Also
rti::core::ServiceRequestId_def::TOPIC_QUERY

RTI Connext Modern C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc