RTI Connext Java API  Version 5.0.0
DataWriterResourceLimitsQosPolicy Class Reference

Various settings that configure how a com.rti.dds.publication.DataWriter allocates and uses physical memory for internal resources. More...

Inheritance diagram for DataWriterResourceLimitsQosPolicy:
QosPolicy

Public Attributes

int initial_concurrent_blocking_threads
 The initial number of threads that are allowed to concurrently block on write call on the same com.rti.dds.publication.DataWriter.
 
int max_concurrent_blocking_threads
 The maximum number of threads that are allowed to concurrently block on write call on the same com.rti.dds.publication.DataWriter.
 
int max_remote_reader_filters
 The maximum number of remote DataReaders for which the com.rti.dds.publication.DataWriter will perform content-based filtering.
 
int max_batches
 Represents the maximum number of batches a com.rti.dds.publication.DataWriter will manage.
 
int initial_batches
 Represents the initial number of batches a com.rti.dds.publication.DataWriter will manage.
 
DataWriterResourceLimitsInstanceReplacementKind instance_replacement
 Sets the kinds of instances allowed to be replaced when instance resource limits are reached.
 
boolean replace_empty_instances
 Whether or not to replace empty instances during instance replacement.
 
boolean autoregister_instances
 Whether or not to automatically register new instances.
 
int initial_virtual_writers
 The initial number of virtual writers supported by a com.rti.dds.publication.DataWriter.
 
int max_virtual_writers
 The maximum number of virtual writers supported by a com.rti.dds.publication.DataWriter.
 
int max_remote_readers
 The maximum number of remote readers supported by a com.rti.dds.publication.DataWriter.
 
int max_app_ack_remote_readers
 The maximum number of application-level acknowledging remote readers supported by a com.rti.dds.publication.DataWriter.
 
- Public Attributes inherited from QosPolicy
final QosPolicyId_t id
 The ID of this QoS policy.
 
final String policy_name
 The name of this QoS policy.
 

Additional Inherited Members

- Public Member Functions inherited from Struct
abstract boolean equals (Object obj)
 
abstract int hashCode ()
 
String toString ()
 
- Protected Member Functions inherited from Struct
 Struct ()
 
abstract void pull_from_nativeI (long native_status)
 
abstract void push_to_nativeI (long native_status)
 

Detailed Description

Various settings that configure how a com.rti.dds.publication.DataWriter allocates and uses physical memory for internal resources.

DataWriters must allocate internal structures to handle the simultaneously blocking of threads trying to call com.rti.ndds.example.FooDataWriter.write on the same com.rti.dds.publication.DataWriter, for the storage used to batch small samples, and for content-based filters specified by DataReaders.

Most of these internal structures start at an initial size and, by default, will be grown as needed by dynamically allocating additional memory. You may set fixed, maximum sizes for these internal structures if you want to bound the amount of memory that can be used by a com.rti.dds.publication.DataWriter. By setting the initial size to the maximum size, you will prevent RTI Connext from dynamically allocating any memory after the creation of the com.rti.dds.publication.DataWriter.

This QoS policy is an extension to the DDS standard.

Entity:
com.rti.dds.publication.DataWriter
Properties:
RxO = N/A
Changeable = NO

Member Data Documentation

int initial_concurrent_blocking_threads

The initial number of threads that are allowed to concurrently block on write call on the same com.rti.dds.publication.DataWriter.

This value only applies if com.rti.dds.infrastructure.HistoryQosPolicy has its kind set to com.rti.dds.infrastructure.HistoryQosPolicyKind.HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS and com.rti.dds.infrastructure.ReliabilityQosPolicy.max_blocking_time is > 0.

[default] 1

[range] [1, 10000], <= max_concurrent_blocking_threads

int max_concurrent_blocking_threads

The maximum number of threads that are allowed to concurrently block on write call on the same com.rti.dds.publication.DataWriter.

This value only applies if com.rti.dds.infrastructure.HistoryQosPolicy has its kind set to com.rti.dds.infrastructure.HistoryQosPolicyKind.HistoryQosPolicyKind.KEEP_ALL_HISTORY_QOS and com.rti.dds.infrastructure.ReliabilityQosPolicy.max_blocking_time is > 0.

[default] com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

[range] [1, 10000] or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED, >= initial_concurrent_blocking_threads

int max_remote_reader_filters

The maximum number of remote DataReaders for which the com.rti.dds.publication.DataWriter will perform content-based filtering.

[default] 32

[range] [0, (2^31)-2] or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED.

0: The com.rti.dds.publication.DataWriter will not perform filtering for any com.rti.dds.subscription.DataReader.

1 to (2^31)-2: The DataWriter will filter for up to the specified number of DataReaders. In addition, the Datawriter will store the result of the filtering per sample per DataReader.

com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED: The DataWriter will filter for up to (2^31)-2 DataReaders. However, in this case, the DataWriter will not store the filtering result per sample per DataReader. Thus, if a sample is resent (such as due to a loss of reliable communication), the sample will be filtered again.

int max_batches

Represents the maximum number of batches a com.rti.dds.publication.DataWriter will manage.

[default] com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

When batching is enabled, the maximum number of samples that a com.rti.dds.publication.DataWriter can store is limited by this value and com.rti.dds.infrastructure.ResourceLimitsQosPolicy.max_samples.

[range] [1,100 million] or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED >= DDS_RtpsReliableWriterProtocol_t::heartbeats_per_max_samples if batching is enabled

See Also
com.rti.dds.infrastructure.BatchQosPolicy
int initial_batches

Represents the initial number of batches a com.rti.dds.publication.DataWriter will manage.

[default] 8

[range] [1,100 million]

See Also
com.rti.dds.infrastructure.BatchQosPolicy

Sets the kinds of instances allowed to be replaced when instance resource limits are reached.

When a com.rti.dds.publication.DataWriter's number of active instances is greater than com.rti.dds.infrastructure.ResourceLimitsQosPolicy.max_instances, it will try to make room by replacing an existing instance. This field specifies the kinds of instances allowed to be replaced.

If a replaceable instance is not available, either an out-of-resources exception will be returned, or the writer may block if the instance reclamation was done when writing.

[default] com.rti.dds.infrastructure.DataWriterResourceLimitsInstanceReplacementKind.DataWriterResourceLimitsInstanceReplacementKind.UNREGISTERED_INSTANCE_REPLACEMENT

See Also
com.rti.dds.infrastructure.DataWriterResourceLimitsInstanceReplacementKind
boolean replace_empty_instances

Whether or not to replace empty instances during instance replacement.

When a com.rti.dds.publication.DataWriter has more active instances than allowed by com.rti.dds.infrastructure.ResourceLimitsQosPolicy.max_instances, it tries to make room by replacing an existing instance. This field configures whether empty instances (i.e. instances with no samples) may be replaced. If set com.rti.dds.infrastructure.true, then a com.rti.dds.publication.DataWriter will first try reclaiming empty instances, before trying to replace whatever is specified by com.rti.dds.infrastructure.DataWriterResourceLimitsQosPolicy.instance_replacement.

[default] com.rti.dds.infrastructure.false

See Also
com.rti.dds.infrastructure.DataWriterResourceLimitsInstanceReplacementKind
boolean autoregister_instances

Whether or not to automatically register new instances.

[default] com.rti.dds.infrastructure.true

When set to true, it is possible to write with a non-NIL handle of an instance that is not registered: the write operation will succeed and the instance will be registered. Otherwise, that write operation would fail.

See Also
com.rti.ndds.example.FooDataWriter.write
int initial_virtual_writers

The initial number of virtual writers supported by a com.rti.dds.publication.DataWriter.

[default] 1

[range] [1, 1000000], or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

int max_virtual_writers

The maximum number of virtual writers supported by a com.rti.dds.publication.DataWriter.

Sets the maximum number of unique virtual writers supported by a com.rti.dds.publication.DataWriter, where virtual writers are added when samples are written with the virtual writer GUID.

This field is specially relevant in the configuration of Persistence Service DataWriters since these DataWriters will publish samples on behalf of multiple virtual writers.

[default] com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

[range] [1, 1000000], or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

int max_remote_readers
int max_app_ack_remote_readers

The maximum number of application-level acknowledging remote readers supported by a com.rti.dds.publication.DataWriter.

[default] com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED

[range] [1, 1000000], or com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED


RTI Connext Java API Version 5.0.0 Copyright © Thu Aug 30 2012 Real-Time Innovations, Inc