OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
SampleRejectedStatus.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.status;
20 
22 import org.omg.dds.core.policy.History;
24 
25 
26 
35 public abstract class SampleRejectedStatus extends Status
36 {
37  // -----------------------------------------------------------------------
38  // Constants
39  // -----------------------------------------------------------------------
40 
41  private static final long serialVersionUID = -612709680820262641L;
42 
43 
44 
45  // -----------------------------------------------------------------------
46  // Methods
47  // -----------------------------------------------------------------------
48 
52  public abstract int getTotalCount();
53 
58  public abstract int getTotalCountChange();
59 
74  public abstract Kind getLastReason();
75 
80  public abstract InstanceHandle getLastInstanceHandle();
81 
82 
83 
84  // -----------------------------------------------------------------------
85  // Types
86  // -----------------------------------------------------------------------
87 
88  public static enum Kind {
92  REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT
93  }
94 
95 }
abstract int getTotalCountChange()
The incremental number of samples rejected since the last time the listener was called or the status ...
abstract int getTotalCount()
Total cumulative count of samples rejected by the org.omg.dds.sub.DataReader.
abstract Kind getLastReason()
Reason for rejecting the last sample rejected.
abstract InstanceHandle getLastInstanceHandle()
Handle to the instance being updated by the last sample that was rejected.
An opaque handle that can be used to refer to a local or remote entity.
A (received) sample has been rejected.
Specifies the resources that the Service can consume in order to meet the requested QoS...
Status is the abstract root class for all communication status objects.
Definition: Status.java:41
Specifies the behavior of the Service in the case where the value of a sample changes (one or more ti...
Definition: History.java:76