OpenSplice Java 5 DCPS  v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
org.opensplice.dds.core.policy.LifespanImpl Class Reference
Inheritance diagram for org.opensplice.dds.core.policy.LifespanImpl:
Inheritance graph
Collaboration diagram for org.opensplice.dds.core.policy.LifespanImpl:
Collaboration graph

Public Member Functions

 LifespanImpl (OsplServiceEnvironment environment)
 
 LifespanImpl (OsplServiceEnvironment environment, Duration duration)
 
boolean equals (Object other)
 
Duration getDuration ()
 
ServiceEnvironment getEnvironment ()
 
Class<? extends QosPolicygetPolicyClass ()
 
int hashCode ()
 
Lifespan withDuration (Duration duration)
 Copy this policy and override the value of the property. More...
 
Lifespan withDuration (long duration, TimeUnit unit)
 Copy this policy and override the value of the property. More...
 

Protected Attributes

OsplServiceEnvironment environment
 

Detailed Description

Definition at line 31 of file LifespanImpl.java.

Constructor & Destructor Documentation

◆ LifespanImpl() [1/2]

org.opensplice.dds.core.policy.LifespanImpl.LifespanImpl ( OsplServiceEnvironment  environment)

Definition at line 35 of file LifespanImpl.java.

◆ LifespanImpl() [2/2]

org.opensplice.dds.core.policy.LifespanImpl.LifespanImpl ( OsplServiceEnvironment  environment,
Duration  duration 
)

Definition at line 40 of file LifespanImpl.java.

Member Function Documentation

◆ equals()

boolean org.opensplice.dds.core.policy.LifespanImpl.equals ( Object  other)

Definition at line 72 of file LifespanImpl.java.

◆ getDuration()

Duration org.opensplice.dds.core.policy.LifespanImpl.getDuration ( )

Implements org.omg.dds.core.policy.Lifespan.

Definition at line 51 of file LifespanImpl.java.

◆ getEnvironment()

ServiceEnvironment org.opensplice.dds.core.policy.QosPolicyImpl.getEnvironment ( )
inherited
Returns
the org.omg.dds.core.ServiceEnvironment object that directly or indirectly was used to create this object.

Implements org.omg.dds.core.DDSObject.

Definition at line 40 of file QosPolicyImpl.java.

◆ getPolicyClass()

Class<? extends QosPolicy> org.opensplice.dds.core.policy.LifespanImpl.getPolicyClass ( )

Definition at line 67 of file LifespanImpl.java.

◆ hashCode()

int org.opensplice.dds.core.policy.LifespanImpl.hashCode ( )

Definition at line 80 of file LifespanImpl.java.

◆ withDuration() [1/2]

Lifespan org.opensplice.dds.core.policy.LifespanImpl.withDuration ( Duration  duration)

Copy this policy and override the value of the property.

Parameters
durationSpecifies a duration for the length in time of the validity of the data.
Returns
a new Lifespan policy

Implements org.omg.dds.core.policy.Lifespan.

Definition at line 56 of file LifespanImpl.java.

◆ withDuration() [2/2]

Lifespan org.opensplice.dds.core.policy.LifespanImpl.withDuration ( long  duration,
TimeUnit  unit 
)

Copy this policy and override the value of the property.

Parameters
durationSpecifies a long duration for the length in time of the validity of the data.
unitThe TimeUnit which the duration describes (i.e. TimeUnit.SECONDS or TimeUnit.MILLISECONDS)
Returns
a new Lifespan policy

Implements org.omg.dds.core.policy.Lifespan.

Definition at line 61 of file LifespanImpl.java.

Member Data Documentation

◆ environment

OsplServiceEnvironment org.opensplice.dds.core.policy.QosPolicyImpl.environment
protectedinherited

Definition at line 29 of file QosPolicyImpl.java.


The documentation for this class was generated from the following file: