OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
SubscriptionMatchedStatusImpl.java
Go to the documentation of this file.
1 /*
2  * Vortex OpenSplice
3  *
4  * This software and documentation are Copyright 2006 to 2021 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  */
21 package org.opensplice.dds.core.status;
22 
27 
29  private static final long serialVersionUID = 5672304659614131159L;
30  private final transient OsplServiceEnvironment environment;
31  private final int totalCount;
32  private final int totalCountChange;
33  private final int currentCount;
34  private final int currentCountChange;
35  private final InstanceHandle lastPublicationHandle;
36 
38  int totalCount, int totalCountChange, int currentCount,
39  int currentCountChange, InstanceHandle lastPublicationHandle) {
40  this.environment = environment;
41  this.totalCount = totalCount;
42  this.totalCountChange = totalCountChange;
43  this.currentCount = currentCount;
44  this.currentCountChange = currentCountChange;
45  this.lastPublicationHandle = lastPublicationHandle;
46  }
47 
48  @Override
50  return this.environment;
51  }
52 
53  @Override
54  public int getTotalCount() {
55  return this.totalCount;
56  }
57 
58  @Override
59  public int getTotalCountChange() {
60  return this.totalCountChange;
61  }
62 
63  @Override
64  public int getCurrentCount() {
65  return this.currentCount;
66  }
67 
68  @Override
69  public int getCurrentCountChange() {
70  return this.currentCountChange;
71  }
72 
73  @Override
75  return this.lastPublicationHandle;
76  }
77 }
SubscriptionMatchedStatusImpl(OsplServiceEnvironment environment, int totalCount, int totalCountChange, int currentCount, int currentCountChange, InstanceHandle lastPublicationHandle)
An opaque handle that can be used to refer to a local or remote entity.
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.
DDS implementations are rooted in this class, a concrete subclass of which can be instantiated based ...