RTI Connext Java API  Version 5.1.0
ReadCondition Interface Reference

<<interface>> Conditions specifically dedicated to read operations and attached to one com.rti.dds.subscription.DataReader. More...

Inheritance diagram for ReadCondition:
Condition QueryCondition

Public Member Functions

int get_sample_state_mask ()
 Retrieves the set of sample_states for the condition.
 
int get_view_state_mask ()
 Retrieves the set of view_states for the condition.
 
int get_instance_state_mask ()
 Retrieves the set of instance_states for the condition.
 
DataReader get_datareader ()
 Returns the com.rti.dds.subscription.DataReader associated with the com.rti.dds.subscription.ReadCondition.
 
- Public Member Functions inherited from Condition
boolean get_trigger_value ()
 Retrieve the trigger_value.
 

Detailed Description

<<interface>> Conditions specifically dedicated to read operations and attached to one com.rti.dds.subscription.DataReader.

com.rti.dds.subscription.ReadCondition objects allow an application to specify the data samples it is interested in (by specifying the desired sample_states, view_states as well as instance_states in com.rti.ndds.example.FooDataReader.read and com.rti.ndds.example.FooDataReader.take variants.

This allows RTI Connext to enable the condition only when suitable information is available. They are to be used in conjunction with a WaitSet as normal conditions.

More than one com.rti.dds.subscription.ReadCondition may be attached to the same com.rti.dds.subscription.DataReader.

Note: If you are using a ReadCondition simply to detect the presence of new data, consider using a com.rti.dds.infrastructure.StatusCondition with the DATA_AVAILABLE_STATUS instead, which will perform better in this situation.

Member Function Documentation

int get_sample_state_mask ( )

Retrieves the set of sample_states for the condition.

int get_view_state_mask ( )

Retrieves the set of view_states for the condition.

int get_instance_state_mask ( )

Retrieves the set of instance_states for the condition.


RTI Connext Java API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc