19 package org.omg.dds.sub;
21 import java.util.List;
23 import java.util.concurrent.TimeUnit;
24 import java.util.concurrent.TimeoutException;
132 extends DomainEntity<DataReaderListener<TYPE>, DataReaderQos>
233 String queryExpression,
234 List<String> queryParameters);
278 String queryExpression,
279 String... queryParameters);
345 String queryExpression,
346 List<String> queryParameters);
409 String queryExpression,
410 String... queryParameters);
607 throws TimeoutException;
644 throws TimeoutException;
1057 public List<Sample<TYPE>>
read(
1272 public List<Sample<TYPE>>
take(
A sample has been lost (never received).
A DataReader allows the application (1) to declare the data it wishes to receive (i.e., make a subscription) and (2) to access the data received by the attached org.omg.dds.sub.Subscriber.
A Subscriber is the object responsible for the actual reception of the data resulting from its subscr...
StatusCondition< DataReader< TYPE > > getStatusCondition()
A Sample represents an atom of data information (i.e., one value for one instance) as returned by a o...
A StatusCondition object is an immutable object that specifies Condition that is associated with each...
RequestedIncompatibleQosStatus getRequestedIncompatibleQosStatus()
This operation obtains the RequestedIncompatibleQosStatus object of the DataReader.
String getQueryExpression()
Returns the query expression of the selector.
int getMaxSamples()
Returns the maximum number of samples of the selector.
InstanceHandle lookupInstance(TYPE keyHolder)
This operation takes as a parameter an instance and returns a handle that can be used in subsequent o...
Selector< T > instance(InstanceHandle handle)
Set InstanceHandle to filter with during the read or take.
boolean retrieveNextInstance()
Returns if the selector should use the next instance or not.
TopicDescription< TYPE > getTopicDescription()
SampleRejectedStatus getSampleRejectedStatus()
This operation obtains the SampleRejectedStatus object of the DataReader.
boolean readNextSample(Sample< TYPE > sample)
This operation copies the next, non-previously accessed sample from this DataReader.
PublicationBuiltinTopicData getMatchedPublicationData(InstanceHandle publicationHandle)
This operation retrieves information on a publication that is currently "associated" with the DataRea...
A DataState encapsulates sets of sample states, view states, and instance states as a convenience...
Selector< T > dataState(Subscriber.DataState state)
Set DataState to filter with during the read or take.
TYPE getKeyValue(TYPE keyHolder, InstanceHandle handle)
This operation can be used to retrieve the instance key that corresponds to an instance handle...
DomainEntity is the abstract base class for all DCPS entities, except for the org.omg.dds.domain.DomainParticipant.
RequestedDeadlineMissedStatus getRequestedDeadlineMissedStatus()
This operation obtains the RequestedDeadlineMissedStatus object of the DataReader.
Selector< T > Content(String queryExpression, List< String > queryParameters)
Set the Content to filter with during the read or take.
Sample.Iterator< TYPE > read()
This operation accesses a collection of samples from this DataReader.
QueryCondition< TYPE > createQueryCondition(String queryExpression, List< String > queryParameters)
This operation creates a QueryCondition.
SampleLostStatus getSampleLostStatus()
This operation obtains the SampleLostStatus object of the DataReader.
void closeContainedEntities()
This operation closes all the entities that were created by means of the "create" operations on the D...
Sample.Iterator< T > take()
This operation works the same as the DataReader#take(), except that it is performed on this Selector ...
An opaque handle that can be used to refer to a local or remote entity.
Selector< T > maxSamples(int max)
Set maxSamples to limit the number of sample to get during the read or take.
A org.omg.dds.core.policy.QosPolicy value was incompatible with what is offered.
ReadCondition< TYPE > createReadCondition(Subscriber.DataState states)
This operation creates a ReadCondition.
ReadCondition< T > getCondition()
Returns the ReadCondition of the selector.
Set< InstanceHandle > getMatchedPublications()
This operation retrieves the list of publications currently "associated" with the DataReader; that is...
public< OTHER > DataReader< OTHER > cast()
Cast this data reader to the given type, or throw an exception if the cast fails. ...
A supertype of all DDS classes and interfaces.
ReadCondition objects are conditions specifically dedicated to read operations and attached to one or...
This class contains the statistics about the discovered number of org.omg.dds.pub.DataWriters that are compatible with the org.omg.dds.sub.DataReader to which the Status is attached.
LivelinessChangedStatus getLivelinessChangedStatus()
This operation obtains the LivelinessChangedStatus object of the DataReader.
Sample.Iterator< TYPE > take()
This operation accesses a collection of samples from this DataReader.
Subscriber.DataState getDataState()
Returns the dataState of the selector.
List< String > getQueryParameters()
Returns a collection of the query parameters of the selector.
The DCPSPublication topic communicates the existence of datawriters by means of the PublicationBuilti...
SubscriptionMatchedStatus getSubscriptionMatchedStatus()
This operation obtains the SubscriptionMatchedStatus object of the DataReader.
The liveliness of one or more org.omg.dds.pub.DataWriters that were writing instances read through th...
Selector< TYPE > select()
Provides a Selector that can be used to refine what read or take methods return.
A span of elapsed time expressed with nanosecond precision.
Sample.Iterator< T > read()
This operation works the same as the DataReader#read(), except that it is performed on this Selector ...
boolean takeNextSample(Sample< TYPE > sample)
This operation copies the next, non-previously accessed sample from this DataReader and "removes" it ...
A (received) sample has been rejected.
This interface is the base for org.omg.dds.topic.Topic, org.omg.dds.topic.ContentFilteredTopic, and org.omg.dds.topic.MultiTopic.
void waitForHistoricalData(Duration maxWait)
This operation is intended only for DataReader entities for which org.omg.dds.core.policy.Durability#getKind() is not org.omg.dds.core.policy.Durability.Kind#VOLATILE.
The deadline that the org.omg.dds.sub.DataReader was expecting through its org.omg.dds.core.policy.Deadline was not respected for a specific instance.
InstanceHandle getInstance()
Returns the current instance the selector is working on.
Selector< T > nextInstance(boolean retrieveNextInstance)
Set next InstanceHandle to filter with during the read or take.
QueryCondition objects are specialized org.omg.dds.sub.ReadCondition objects that allow the applicati...