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

Public Member Functions

 ReaderLifespanImpl (OsplServiceEnvironment environment, Duration duration)
 
 ReaderLifespanImpl (OsplServiceEnvironment environment)
 
boolean equals (Object other)
 
Duration getDuration ()
 
ServiceEnvironment getEnvironment ()
 
Class<? extends QosPolicygetPolicyClass ()
 
int hashCode ()
 
ReaderLifespan withDuration (Duration duration)
 Copy this policy and override the value of the property. More...
 
ReaderLifespan 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 ReaderLifespanImpl.java.

Constructor & Destructor Documentation

◆ ReaderLifespanImpl() [1/2]

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

Definition at line 35 of file ReaderLifespanImpl.java.

◆ ReaderLifespanImpl() [2/2]

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

Definition at line 46 of file ReaderLifespanImpl.java.

Member Function Documentation

◆ equals()

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

Definition at line 73 of file ReaderLifespanImpl.java.

◆ getDuration()

Duration org.opensplice.dds.core.policy.ReaderLifespanImpl.getDuration ( )
Returns
The duration of this ReaderLifespan.

Implements org.opensplice.dds.core.policy.ReaderLifespan.

Definition at line 52 of file ReaderLifespanImpl.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.ReaderLifespanImpl.getPolicyClass ( )

Definition at line 68 of file ReaderLifespanImpl.java.

◆ hashCode()

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

Definition at line 81 of file ReaderLifespanImpl.java.

◆ withDuration() [1/2]

ReaderLifespan org.opensplice.dds.core.policy.ReaderLifespanImpl.withDuration ( Duration  duration)

Copy this policy and override the value of the property.

Parameters
durationThe duration after which data loses validity and is removed
Returns
a new ReaderLifespan policy

Implements org.opensplice.dds.core.policy.ReaderLifespan.

Definition at line 57 of file ReaderLifespanImpl.java.

◆ withDuration() [2/2]

ReaderLifespan org.opensplice.dds.core.policy.ReaderLifespanImpl.withDuration ( long  duration,
TimeUnit  unit 
)

Copy this policy and override the value of the property.

Parameters
durationThe duration after which data loses validity and is removed
unitThe TimeUnit which the period describes (i.e. TimeUnit.SECONDS or TimeUnit.MILLISECONDS)
Returns
a new ReaderLifespan policy

Implements org.opensplice.dds.core.policy.ReaderLifespan.

Definition at line 62 of file ReaderLifespanImpl.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: