RTI Connext .Net APIs
Version 6.0.0
|
Built-in topic reader's resource limits. More...
#include <managed_infrastructure.h>
Public Attributes | |
System::Int32 | initial_samples |
Initial number of samples. More... | |
System::Int32 | max_samples |
Maximum number of samples. More... | |
System::Int32 | initial_infos |
Initial number of sample infos. More... | |
System::Int32 | max_infos |
Maximum number of sample infos. More... | |
System::Int32 | initial_outstanding_reads |
The initial number of outstanding reads that have not call finish yet on the same built-in topic DDS::DataReader. More... | |
System::Int32 | max_outstanding_reads |
The maximum number of outstanding reads that have not called finish yet on the same built-in topic DDS::DataReader. More... | |
System::Int32 | max_samples_per_read |
Maximum number of samples that can be read/taken on a same built-in topic DDS::DataReader. More... | |
System::Boolean | disable_fragmentation_support |
Determines whether the built-in topic DDS::DataReader can receive fragmented samples. More... | |
System::Int32 | max_fragmented_samples |
The maximum number of samples for which the built-in topic DDS::DataReader may store fragments at a given point in time. More... | |
System::Int32 | initial_fragmented_samples |
The initial number of samples for which a built-in topic DDS::DataReader may store fragments. More... | |
System::Int32 | max_fragmented_samples_per_remote_writer |
The maximum number of samples per remote writer for which a built-in topic DDS::DataReader may store fragments. More... | |
System::Int32 | max_fragments_per_sample |
Maximum number of fragments for a single sample. More... | |
System::Boolean | dynamically_allocate_fragmented_samples |
Determines whether the built-in topic DDS::DataReader pre-allocates storage for storing fragmented samples. More... | |
Built-in topic reader's resource limits.
Defines the resources that can be used for a built-in-topic data reader.
A built-in topic data reader subscribes reliably to built-in topics containing declarations of new entities or updates to existing entities in the domain. Keys are used to differentiate among entities of the same type. RTI Connext assigns a unique key to each entity in a domain.
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::initial_samples |
Initial number of samples.
This should be a value between 1 and initial number of instance of the built-in-topic reader, depending on how many instances are sending data concurrently.
[default] 64
[range] [1, 1 million], <= max_samples
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_samples |
Maximum number of samples.
This should be a value between 1 and max number of instance of the built-in-topic reader, depending on how many instances are sending data concurrently. Also, it should not be less than initial_samples.
[default] DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED
[range] [1, 1 million] or DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED, >= initial_samples
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::initial_infos |
Initial number of sample infos.
The initial number of info units that a built-in topic DDS::DataReader can have. Info units are used to store DDS::SampleInfo.
[default] 64
[range] [1, 1 million] <= max_infos
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_infos |
Maximum number of sample infos.
The maximum number of info units that a built-in topic DDS::DataReader can use to store DDS::SampleInfo.
[default] DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED
[range] [1, 1 million] or DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED, >= initial_infos
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::initial_outstanding_reads |
The initial number of outstanding reads that have not call finish yet on the same built-in topic DDS::DataReader.
[default] 2
[range] [1, 65536] or DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED <= max_outstanding_reads
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_outstanding_reads |
The maximum number of outstanding reads that have not called finish yet on the same built-in topic DDS::DataReader.
[default] DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED
[range] [1, 65536] or DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED, >= initial_outstanding_reads
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_samples_per_read |
Maximum number of samples that can be read/taken on a same built-in topic DDS::DataReader.
[default] 1024
[range] [1, 65536]
System::Boolean DDS::BuiltinTopicReaderResourceLimits_t::disable_fragmentation_support |
Determines whether the built-in topic DDS::DataReader can receive fragmented samples.
When fragmentation support is not needed, disabling fragmentation support will save some memory resources.
[default] false
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_fragmented_samples |
The maximum number of samples for which the built-in topic DDS::DataReader may store fragments at a given point in time.
At any given time, a built-in topic DDS::DataReader may store fragments for up to max_fragmented_samples
samples while waiting for the remaining fragments. These samples need not have consecutive sequence numbers and may have been sent by different built-in topic DDS::DataWriter instances.
Once all fragments of a sample have been received, the sample is treated as a regular sample and becomes subject to standard QoS settings such as DDS::BuiltinTopicReaderResourceLimits_t::max_samples.
The middleware will drop fragments if the max_fragmented_samples
limit has been reached. For best-effort communication, the middleware will accept a fragment for a new sample, but drop the oldest fragmented sample from the same remote writer. For reliable communication, the middleware will drop fragments for any new samples until all fragments for at least one older sample from that writer have been received.
Only applies if DDS::BuiltinTopicReaderResourceLimits_t::disable_fragmentation_support is false.
[default] 1024
[range] [1, 1 million]
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::initial_fragmented_samples |
The initial number of samples for which a built-in topic DDS::DataReader may store fragments.
Only applies if DDS::BuiltinTopicReaderResourceLimits_t::disable_fragmentation_support is false.
[default] 4
[range] [1,1024], <= max_fragmented_samples
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_fragmented_samples_per_remote_writer |
The maximum number of samples per remote writer for which a built-in topic DDS::DataReader may store fragments.
Logical limit so a single remote writer cannot consume all available resources.
Only applies if DDS::BuiltinTopicReaderResourceLimits_t::disable_fragmentation_support is false.
[default] 256
[range] [1, 1 million], <= max_fragmented_samples
System::Int32 DDS::BuiltinTopicReaderResourceLimits_t::max_fragments_per_sample |
Maximum number of fragments for a single sample.
Only applies if DDS::BuiltinTopicReaderResourceLimits_t::disable_fragmentation_support is false.
[default] DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED
[range] [1, 1 million] or DDS::ResourceLimitsQosPolicy::LENGTH_UNLIMITED
System::Boolean DDS::BuiltinTopicReaderResourceLimits_t::dynamically_allocate_fragmented_samples |
Determines whether the built-in topic DDS::DataReader pre-allocates storage for storing fragmented samples.
By default, the middleware does not allocate memory upfront, but instead allocates memory from the heap upon receiving the first fragment of a new sample. The amount of memory allocated equals the amount of memory needed to store all fragments in the sample. Once all fragments of a sample have been received, the sample is deserialized and stored in the regular receive queue. At that time, the dynamically allocated memory is freed again.
This QoS setting is useful for large, but variable-sized data types where upfront memory allocation for multiple samples based on the maximum possible sample size may be expensive. The main disadvantage of not pre-allocating memory is that one can no longer guarantee the middleware will have sufficient resources at run-time.
If dynamically_allocate_fragmented_samples
is set to false, the middleware will allocate memory upfront for storing fragments for up to DDS::DataReaderResourceLimitsQosPolicy::initial_fragmented_samples samples. This memory may grow up to DDS::DataReaderResourceLimitsQosPolicy::max_fragmented_samples if needed.
Only applies if DDS::DataReaderResourceLimitsQosPolicy::disable_fragmentation_support is false.
[default] true