OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
DataReader.java
Go to the documentation of this file.
1 /*
2  * Vortex OpenSplice
3  *
4  * This software and documentation are Copyright 2006 to 2024 ADLINK
5  * Technology Limited, its affiliated companies and licensors. All rights
6  * reserved.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 package org.opensplice.dds.sub;
21 
22 import java.util.List;
23 import java.util.concurrent.TimeUnit;
24 import java.util.concurrent.TimeoutException;
25 
26 import org.omg.dds.core.Duration;
27 import org.omg.dds.core.Time;
29 
30 public interface DataReader<TYPE> extends org.omg.dds.sub.DataReader<TYPE> {
89  public void waitForHistoricalData(String filterExpression,
90  List<String> filterParameters, Time minSourceTimestamp,
91  Time maxSourceTimestamp, ResourceLimits resourceLimits,
92  Duration maxWait) throws TimeoutException;
93 
149  public void waitForHistoricalData(String filterExpression,
150  List<String> filterParameters, Time minSourceTimestamp,
151  Time maxSourceTimestamp, Duration maxWait) throws TimeoutException;
152 
203  public void waitForHistoricalData(String filterExpression,
204  List<String> filterParameters, ResourceLimits resourceLimits,
205  Duration maxWait) throws TimeoutException;
206 
254  public void waitForHistoricalData(String filterExpression,
255  List<String> filterParameters, Duration maxWait)
256  throws TimeoutException;
257 
305  public void waitForHistoricalData(Time minSourceTimestamp,
306  Time maxSourceTimestamp, ResourceLimits resourceLimits,
307  Duration maxWait) throws TimeoutException;
308 
353  public void waitForHistoricalData(Time minSourceTimestamp,
354  Time maxSourceTimestamp, Duration maxWait) throws TimeoutException;
355 
395  public void waitForHistoricalData(
396  ResourceLimits resourceLimits, Duration maxWait)
397  throws TimeoutException;
398 
460  public void waitForHistoricalData(String filterExpression,
461  List<String> filterParameters, Time minSourceTimestamp,
462  Time maxSourceTimestamp, ResourceLimits resourceLimits,
463  long maxWait, TimeUnit unit) throws TimeoutException;
464 
523  public void waitForHistoricalData(String filterExpression,
524  List<String> filterParameters, Time minSourceTimestamp,
525  Time maxSourceTimestamp, long maxWait, TimeUnit unit)
526  throws TimeoutException;
527 
581  public void waitForHistoricalData(String filterExpression,
582  List<String> filterParameters, ResourceLimits resourceLimits,
583  long maxWait, TimeUnit unit) throws TimeoutException;
584 
635  public void waitForHistoricalData(String filterExpression,
636  List<String> filterParameters, long maxWait, TimeUnit unit)
637  throws TimeoutException;
638 
689  public void waitForHistoricalData(Time minSourceTimestamp,
690  Time maxSourceTimestamp, ResourceLimits resourceLimits,
691  long maxWait, TimeUnit unit) throws TimeoutException;
692 
740  public void waitForHistoricalData(Time minSourceTimestamp,
741  Time maxSourceTimestamp, long maxWait, TimeUnit unit)
742  throws TimeoutException;
743 
786  public void waitForHistoricalData(
787  ResourceLimits resourceLimits, long maxWait, TimeUnit unit)
788  throws TimeoutException;
789 }
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 span of elapsed time expressed with nanosecond precision.
Definition: Duration.java:35
Specifies the resources that the Service can consume in order to meet the requested QoS...
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.
A moment in time expressed with nanosecond precision (though not necessarily nanosecond accuracy)...
Definition: Time.java:34