OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
DataAvailableEvent.java
Go to the documentation of this file.
1 /* Copyright 2010, Object Management Group, Inc.
2  * Copyright 2010, PrismTech, Inc.
3  * Copyright 2010, Real-Time Innovations, Inc.
4  * All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 package org.omg.dds.core.event;
20 
21 import org.omg.dds.sub.DataReader;
22 import org.omg.dds.sub.InstanceState;
23 import org.omg.dds.sub.SampleState;
24 import org.omg.dds.sub.ViewState;
27 
28 import DDS.OwnershipQosPolicyKind;
29 
66 public abstract class DataAvailableEvent<TYPE>
67 extends StatusChangedEvent<DataReader<TYPE>>
68 {
69  // -----------------------------------------------------------------------
70  // Constants
71  // -----------------------------------------------------------------------
72 
73  private static final long serialVersionUID = 3780297056587396629L;
74 
75 
76 
77  // -----------------------------------------------------------------------
78  // Methods
79  // -----------------------------------------------------------------------
80 
81  public abstract DataAvailableStatus getStatus();
82 
83  // --- Object Life Cycle: ------------------------------------------------
84 
86  super(source);
87  }
88 
89 
90  // --- From Object: ------------------------------------------------------
91 
92  @Override
93  public abstract DataAvailableEvent<TYPE> clone();
94 }
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.
The status of an Entity changed.
For each instance the Data Distribution Service internally maintains an InstanceState.
For each sample, the Data Distribution Service internally maintains a SampleState specific to each Da...
For each instance (identified by the key), the Data Distribution Service internally maintains a ViewS...
Definition: ViewState.java:26
The DataAvailableEvent status change becomes TRUE when either a data-sample arrives or else the ViewS...
There is new data in the DataReader.
abstract DataAvailableEvent< TYPE > clone()
abstract DataAvailableStatus getStatus()
This QosPolicy specifies whether a DataWriter exclusively may own an instance.
Definition: Ownership.java:63