21 package org.opensplice.dds.core.policy;
29 private static final long serialVersionUID = 2403290580864742451L;
30 private final boolean coherentAccess;
31 private final boolean orderedAccess;
36 this.coherentAccess =
false;
37 this.orderedAccess =
false;
43 boolean orderedAccess) {
46 if (accessScope == null) {
48 "Supplied access scope is invalid.");
50 this.accessScope = accessScope;
51 this.coherentAccess = coherentAccess;
52 this.orderedAccess = orderedAccess;
66 if (other.equals(
this.accessScope)) {
70 }
else if (this.orderedAccess) {
75 if (this.coherentAccess) {
79 }
else if (this.coherentAccess) {
95 public boolean equals(Object other) {
101 if (p.coherentAccess !=
this.coherentAccess) {
104 if (p.orderedAccess !=
this.orderedAccess) {
107 if (p.accessScope !=
this.accessScope) {
115 return this.accessScope;
120 return this.coherentAccess;
125 return this.orderedAccess;
131 this.coherentAccess, this.orderedAccess);
137 coherentAccess, this.orderedAccess);
143 this.coherentAccess, orderedAccess);
149 this.coherentAccess,
this.orderedAccess);
155 this.coherentAccess,
this.orderedAccess);
161 this.coherentAccess,
this.orderedAccess);
171 final int prime = 31;
174 result = prime * result + this.accessScope.hashCode();
175 result = prime * result + (this.coherentAccess ? 1 : 0);
177 return prime * result + (this.orderedAccess ? 1 : 0);
int compareTo(Presentation o)
boolean isCoherentAccess()
If coherentAccess is set, then the accessScope controls the maximum extent of coherent changes...
boolean isCoherentAccess()
If coherentAccess is set, then the accessScope controls the maximum extent of coherent changes...
Presentation withAccessScope(AccessScopeKind accessScope)
Copy this policy and override the value of the property.
PresentationImpl(OsplServiceEnvironment environment, AccessScopeKind accessScope, boolean coherentAccess, boolean orderedAccess)
OsplServiceEnvironment environment
Presentation withInstance()
AccessScopeKind getAccessScope()
Comparable< Presentation > requestedOfferedContract()
Presentation withCoherentAccess(boolean coherentAccess)
Copy this policy and override the value of the property.
boolean equals(Object other)
Specifies how the samples representing changes to data instances are presented to the subscribing app...
INSTANCE
Scope spans only a single instance.
This class is the abstract root for all the QoS policies.
AccessScopeKind getAccessScope()
Class<? extends QosPolicy > getPolicyClass()
boolean isOrderedAccess()
If orderedAccess is set, then the accessScope controls the maximum extent for which order will be pre...
boolean isOrderedAccess()
If orderedAccess is set, then the accessScope controls the maximum extent for which order will be pre...
PresentationImpl(OsplServiceEnvironment environment)
TOPIC
Scope spans to all instances within the same org.omg.dds.pub.DataWriter (or org.omg.dds.sub.DataReader), but not across instances in different DataWriter (or DataReader).
GROUP
[optional] Scope spans to all instances belonging to org.omg.dds.pub.DataWriter (or org...
Presentation withOrderedAccess(boolean orderedAccess)
Copy this policy and override the value of the property.