21 package org.opensplice.dds.core.policy;
23 import java.util.concurrent.TimeUnit;
32 private static final long serialVersionUID = 8654350221156374238L;
33 private final Kind kind;
34 private final Duration leaseDuration;
48 "Supplied kind is null.");
50 if (leaseDuration == null) {
52 "Supplied lease duration is null.");
55 this.leaseDuration = leaseDuration;
69 if (this.kind.equals(other)) {
83 public boolean equals(Object other) {
89 if (!l.kind.equals(
this.kind)) {
92 return this.leaseDuration.equals(l.leaseDuration);
102 return this.leaseDuration;
118 .getSPI().newDuration(leaseDuration, unit));
146 final int prime = 31;
149 result = prime * result + this.kind.hashCode();
150 return prime * result + this.leaseDuration.hashCode();
Liveliness withManualByTopic()
Class<? extends QosPolicy > getPolicyClass()
MANUAL_BY_PARTICIPANT
The user application takes responsibility to signal liveliness to the Service.
Liveliness withKind(Kind kind)
Copy this policy and override the value of the property.
OsplServiceEnvironment environment
Liveliness withLeaseDuration(long leaseDuration, TimeUnit unit)
Copy this policy and override the value of the property.
AUTOMATIC
The infrastructure will automatically signal liveliness for the org.omg.dds.pub.DataWriters at least ...
Liveliness withLeaseDuration(Duration leaseDuration)
Copy this policy and override the value of the property.
int compareTo(Liveliness o)
ServiceProviderInterface getSPI()
Comparable< Liveliness > requestedOfferedContract()
Determines the mechanism and parameters used by the application to determine whether an org...
Duration getLeaseDuration()
This class is the abstract root for all the QoS policies.
Duration getLeaseDuration()
Liveliness withAutomatic()
Liveliness withManualByParticipant()
LivelinessImpl(OsplServiceEnvironment environment)
MANUAL_BY_TOPIC
The user application takes responsibility to signal liveliness to the Service.
A span of elapsed time expressed with nanosecond precision.
Duration infiniteDuration()
boolean equals(Object other)
LivelinessImpl(OsplServiceEnvironment environment, Kind kind, Duration leaseDuration)