![]() |
OpenSplice Java 5 DCPS
v6.x
OpenSplice Java 5 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
Specifies the resources that the Service can consume in order to meet the requested QoS. More...
Public Member Functions | |
ServiceEnvironment | getEnvironment () |
int | getMaxInstances () |
int | getMaxSamples () |
int | getMaxSamplesPerInstance () |
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 |
Specifies the resources that the Service can consume in order to meet the requested QoS.
Concerns: org.omg.dds.topic.Topic, org.omg.dds.sub.DataReader, org.omg.dds.pub.DataWriter
RxO: No
Changeable: No
This policy controls the resources that the Service can use in order to meet the requirements imposed by the application and other QoS settings.
If the DataWriter objects are communicating samples faster than they are ultimately taken by the DataReader objects, the middleware will eventually hit against some of the QoS-imposed resource limits. Note that this may occur when just a single DataReader cannot keep up with its corresponding DataWriter. The behavior in this case depends on the setting for the org.omg.dds.core.policy.Reliability. If reliability is Reliability.Kind#BEST_EFFORT, then the Service is allowed to drop samples. If the reliability is Reliability.Kind#RELIABLE, the Service will block the DataWriter or discard the sample at the DataReader in order not to lose existing samples (so that the sample can be resent at a later time).
The constant LENGTH_UNLIMITED may be used to indicate the absence of a particular limit. For example setting maxSamplesPerInstance to LENGH_UNLIMITED will cause the middleware to not enforce this particular limit.
The setting of RESOURCE_LIMITS maxSamples must be consistent with the maxSamplesPerInstance. For these two values to be consistent they must verify that "max_samples >= max_samples_per_instance."
The setting of RESOURCE_LIMITS maxSamplesPerInstance must be consistent with the HISTORY depth. For these two QoS to be consistent, they must verify that "depth <= maxSamplesPerInstance."
An attempt to set this policy to inconsistent values when an entity is created or via a setQos
operation will cause the operation to fail.
Definition at line 68 of file ResourceLimits.java.
|
inherited |
Implemented in org.omg.dds.core.ServiceEnvironment, org.opensplice.dds.sub.ReflectionDataReader< TYPE, OUT_TYPE >, org.opensplice.dds.core.ModifiableTimeImpl, org.opensplice.dds.pub.ReflectionDataWriter< TYPE >, org.opensplice.dds.core.DurationImpl, org.opensplice.dds.topic.ContentFilteredTopicImpl< TYPE >, org.opensplice.dds.sub.ReadConditionImpl< TYPE >, org.opensplice.dds.core.EntityQosImpl< T extends QosPolicy >, org.opensplice.dds.type.TypeSupportImpl< TYPE >, org.opensplice.dds.topic.PublicationBuiltinTopicDataImpl, org.opensplice.dds.topic.SubscriptionBuiltinTopicDataImpl, org.opensplice.dds.topic.TopicBuiltinTopicDataImpl, org.opensplice.dds.domain.DomainParticipantFactoryImpl, org.opensplice.dds.core.QosProviderImpl, org.opensplice.dds.core.status.OfferedIncompatibleQosStatusImpl, org.opensplice.dds.core.status.RequestedIncompatibleQosStatusImpl, org.opensplice.dds.core.InstanceHandleImpl, org.opensplice.dds.core.StatusConditionImpl< T extends Entity<?, ?>, org.opensplice.dds.core.status.LivelinessChangedStatusImpl, org.opensplice.dds.core.status.PublicationMatchedStatusImpl, org.opensplice.dds.core.status.SubscriptionMatchedStatusImpl, org.opensplice.dds.sub.SampleImpl< TYPE >, org.opensplice.dds.core.policy.ShareImpl, org.opensplice.dds.core.status.OfferedDeadlineMissedStatusImpl, org.opensplice.dds.core.status.SampleRejectedStatusImpl, org.opensplice.dds.core.WaitSetImpl, org.opensplice.dds.topic.ParticipantBuiltinTopicDataImpl, org.opensplice.dds.core.status.RequestedDeadlineMissedStatusImpl, org.opensplice.dds.topic.BuiltinTopicKeyImpl, org.opensplice.dds.core.GuardConditionImpl, org.opensplice.dds.core.event.AllDataDisposedEventImpl< TYPE >, org.opensplice.dds.core.policy.QosPolicyCountImpl, org.opensplice.dds.core.status.InconsistentTopicStatusImpl, org.opensplice.dds.core.status.LivelinessLostStatusImpl, org.opensplice.dds.core.status.SampleLostStatusImpl, org.opensplice.dds.core.policy.QosPolicyImpl, org.opensplice.dds.core.status.AllDataDisposedStatusImpl, org.opensplice.dds.core.IllegalArgumentExceptionImpl, org.opensplice.dds.core.InconsistentPolicyExceptionImpl, org.opensplice.dds.core.policy.PolicyFactoryImpl, org.opensplice.dds.core.policy.TypeConsistencyEnforcementImpl, org.opensplice.dds.core.PreconditionNotMetExceptionImpl, org.opensplice.dds.core.AlreadyClosedExceptionImpl, org.opensplice.dds.core.IllegalOperationExceptionImpl, org.opensplice.dds.core.ImmutablePolicyExceptionImpl, org.opensplice.dds.core.NotEnabledExceptionImpl, org.opensplice.dds.core.OutOfResourcesExceptionImpl, org.opensplice.dds.core.DDSExceptionImpl, org.opensplice.dds.core.status.DataAvailableStatusImpl, and org.opensplice.dds.core.status.DataOnReadersStatusImpl.
int org.omg.dds.core.policy.ResourceLimits.getMaxInstances | ( | ) |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
int org.omg.dds.core.policy.ResourceLimits.getMaxSamples | ( | ) |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
int org.omg.dds.core.policy.ResourceLimits.getMaxSamplesPerInstance | ( | ) |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
ResourceLimits org.omg.dds.core.policy.ResourceLimits.withMaxInstances | ( | int | maxInstances | ) |
Copy this policy and override the value of the property.
maxInstances | Specifies the maximum number of instances for any single DataWriter (or DataReader). By default, unlimited. |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
ResourceLimits org.omg.dds.core.policy.ResourceLimits.withMaxSamples | ( | int | maxSamples | ) |
Copy this policy and override the value of the property.
maxSamples | Specifies the maximum number of data samples for all instances for any single DataWriter (or DataReader). By default, unlimited. |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
ResourceLimits org.omg.dds.core.policy.ResourceLimits.withMaxSamplesPerInstance | ( | int | maxSamplesPerInstance | ) |
Copy this policy and override the value of the property.
maxSamplesPerInstance | Specifies the maximum number of samples of any single instance for any single DataWriter (or DataReader). By default, unlimited. |
Implemented in org.opensplice.dds.core.policy.ResourceLimitsImpl.
|
static |
Definition at line 71 of file ResourceLimits.java.