21 package org.opensplice.dds.core.policy;
23 import java.util.concurrent.TimeUnit;
32 private static final long serialVersionUID = 6766092830787145265L;
39 if (duration == null) {
41 "Supplied invalid duration.");
43 this.duration = duration;
73 public boolean equals(Object other) {
77 return this.duration.equals(((ReaderLifespanImpl) other).duration);
82 return 31 * 17 + this.duration.hashCode();
This org.omg.dds.core.policy.QosPolicy is similar to the org.omg.dds.core.policy.Lifespan (applicable...
ReaderLifespan withDuration(Duration duration)
Copy this policy and override the value of the property.
OsplServiceEnvironment environment
Class<? extends QosPolicy > getPolicyClass()
ReaderLifespanImpl(OsplServiceEnvironment environment, Duration duration)
ServiceProviderInterface getSPI()
This class is the abstract root for all the QoS policies.
boolean equals(Object other)
ReaderLifespanImpl(OsplServiceEnvironment environment)
ReaderLifespan withDuration(long duration, TimeUnit unit)
Copy this policy and override the value of the property.
A span of elapsed time expressed with nanosecond precision.
Duration infiniteDuration()