21 package org.opensplice.dds.core.policy;
23 import java.util.concurrent.TimeUnit;
32 private static final long serialVersionUID = 7903452866315787071L;
43 if (duration == null) {
45 "Supplied invalid duration.");
47 this.duration = duration;
72 public boolean equals(Object other) {
76 return this.duration.equals(((LifespanImpl) other).duration);
81 return 31 * 17 + this.duration.hashCode();
boolean equals(Object other)
LifespanImpl(OsplServiceEnvironment environment)
OsplServiceEnvironment environment
Lifespan withDuration(Duration duration)
Copy this policy and override the value of the property.
Lifespan withDuration(long duration, TimeUnit unit)
Copy this policy and override the value of the property.
ServiceProviderInterface getSPI()
This class is the abstract root for all the QoS policies.
LifespanImpl(OsplServiceEnvironment environment, Duration duration)
Duration newDuration(long duration, TimeUnit unit)
Construct a org.omg.dds.core.Duration of the given magnitude.
A span of elapsed time expressed with nanosecond precision.
Duration infiniteDuration()
Specifies the maximum duration of validity of the data written by the org.omg.dds.pub.DataWriter.
Class<? extends QosPolicy > getPolicyClass()