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

Public Member Functions

 ResourceLimitsImpl (OsplServiceEnvironment environment)
 
 ResourceLimitsImpl (OsplServiceEnvironment environment, int maxSamples, int maxInstances, int maxSamplesPerInstance)
 
boolean equals (Object other)
 
ServiceEnvironment getEnvironment ()
 
int getMaxInstances ()
 
int getMaxSamples ()
 
int getMaxSamplesPerInstance ()
 
Class<? extends QosPolicygetPolicyClass ()
 
int hashCode ()
 
ResourceLimits withMaxInstances (int maxInstances)
 Copy this policy and override the value of the property. More...
 
ResourceLimits withMaxSamples (int maxSamples)
 Copy this policy and override the value of the property. More...
 
ResourceLimits withMaxSamplesPerInstance (int maxSamplesPerInstance)
 Copy this policy and override the value of the property. More...
 

Static Public Attributes

static final int LENGTH_UNLIMITED = -1
 

Protected Attributes

OsplServiceEnvironment environment
 

Detailed Description

Definition at line 27 of file ResourceLimitsImpl.java.

Constructor & Destructor Documentation

◆ ResourceLimitsImpl() [1/2]

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

Definition at line 33 of file ResourceLimitsImpl.java.

◆ ResourceLimitsImpl() [2/2]

org.opensplice.dds.core.policy.ResourceLimitsImpl.ResourceLimitsImpl ( OsplServiceEnvironment  environment,
int  maxSamples,
int  maxInstances,
int  maxSamplesPerInstance 
)

Definition at line 40 of file ResourceLimitsImpl.java.

Member Function Documentation

◆ equals()

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

Definition at line 87 of file ResourceLimitsImpl.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.

◆ getMaxInstances()

int org.opensplice.dds.core.policy.ResourceLimitsImpl.getMaxInstances ( )
Returns
the maxInstances

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 54 of file ResourceLimitsImpl.java.

◆ getMaxSamples()

int org.opensplice.dds.core.policy.ResourceLimitsImpl.getMaxSamples ( )
Returns
the maxSamples

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 49 of file ResourceLimitsImpl.java.

◆ getMaxSamplesPerInstance()

int org.opensplice.dds.core.policy.ResourceLimitsImpl.getMaxSamplesPerInstance ( )
Returns
the maxSamplesPerInstance

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 59 of file ResourceLimitsImpl.java.

◆ getPolicyClass()

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

Definition at line 82 of file ResourceLimitsImpl.java.

◆ hashCode()

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

Definition at line 103 of file ResourceLimitsImpl.java.

◆ withMaxInstances()

ResourceLimits org.opensplice.dds.core.policy.ResourceLimitsImpl.withMaxInstances ( int  maxInstances)

Copy this policy and override the value of the property.

Parameters
maxInstancesSpecifies the maximum number of instances for any single DataWriter (or DataReader). By default, unlimited.
Returns
a new ResourceLimits policy

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 70 of file ResourceLimitsImpl.java.

◆ withMaxSamples()

ResourceLimits org.opensplice.dds.core.policy.ResourceLimitsImpl.withMaxSamples ( int  maxSamples)

Copy this policy and override the value of the property.

Parameters
maxSamplesSpecifies the maximum number of data samples for all instances for any single DataWriter (or DataReader). By default, unlimited.
Returns
a new ResourceLimits policy

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 64 of file ResourceLimitsImpl.java.

◆ withMaxSamplesPerInstance()

ResourceLimits org.opensplice.dds.core.policy.ResourceLimitsImpl.withMaxSamplesPerInstance ( int  maxSamplesPerInstance)

Copy this policy and override the value of the property.

Parameters
maxSamplesPerInstanceSpecifies the maximum number of samples of any single instance for any single DataWriter (or DataReader). By default, unlimited.
Returns
a new ResourceLimits policy

Implements org.omg.dds.core.policy.ResourceLimits.

Definition at line 76 of file ResourceLimitsImpl.java.

Member Data Documentation

◆ environment

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

Definition at line 29 of file QosPolicyImpl.java.

◆ LENGTH_UNLIMITED

final int org.omg.dds.core.policy.ResourceLimits.LENGTH_UNLIMITED = -1
staticinherited

Definition at line 71 of file ResourceLimits.java.


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