RESOURCE_LIMITS
-
The RESOURCE_LIMITS policy determines the amount of resources the service can consume in order to meet the requested QoS. This policy applies to the topic, data reader, and data writer entities via the
resource_limits
member of their respective QoS structures. Below is the IDL related to the resource limits QoS policy.
struct ResourceLimitsQosPolicy {
long max_samples;
long max_instances;
long max_samples_per_instance;
};
-
The
max_samples
member specifies the maximum number of samples a single data writer or data reader can manage across all of its instances. The
max_instances
member specifies the maximum number of instances that a data writer or data reader can manage. The
max_samples_per_instance
member specifies the maximum number of samples that can be managed for an individual instance in a single data writer or data reader. The values of all these members default to unlimited (
DDS::LENGTH_UNLIMITED
).
-
Resources are used by the data writer to queue samples written to the data writer but not yet sent to all data readers because of backpressure from the transport. Resources are used by the data reader to queue samples that have been received, but not yet read/taken from the data reader.