RTI Connext Java API Version 7.3.0
|
<<extension>> com.rti.dds.publication.FlowController and associated elements More...
Classes | |
interface | FlowController |
<<interface>> A flow controller is the object responsible for shaping the network traffic by determining when attached asynchronous com.rti.dds.publication.DataWriter instances are allowed to write data. More... | |
class | FlowControllerProperty_t |
Determines the flow control characteristics of the com.rti.dds.publication.FlowController. More... | |
class | FlowControllerSchedulingPolicy |
Kinds of flow controller scheduling policy. More... | |
class | FlowControllerTokenBucketProperty_t |
com.rti.dds.publication.FlowController uses the popular token bucket approach for open loop network flow control. The flow control characteristics are determined by the token bucket properties. More... | |
Variables | |
static final String | DEFAULT_FLOW_CONTROLLER_NAME |
[default] Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in default flow controller. More... | |
static final String | FIXED_RATE_FLOW_CONTROLLER_NAME |
Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in fixed-rate flow controller. More... | |
static final String | ON_DEMAND_FLOW_CONTROLLER_NAME |
Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in on-demand flow controller. More... | |
<<extension>> com.rti.dds.publication.FlowController and associated elements
com.rti.dds.publication.FlowController provides the network traffic shaping capability to asynchronous com.rti.dds.publication.DataWriter instances. For use cases and advantages of publishing asnychronously, please refer to com.rti.dds.infrastructure.PublishModeQosPolicy of com.rti.dds.publication.DataWriterQos.
|
static |
[default] Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in default flow controller.
RTI Connext provides several built-in com.rti.dds.publication.FlowController for use with an asynchronous com.rti.dds.publication.DataWriter. The user can choose to use the built-in flow controllers and optionally modify their properties or can create a custom flow controller.
By default, flow control is disabled. That is, the built-in com.rti.dds.publication.FlowController.DEFAULT_FLOW_CONTROLLER_NAME flow controller does not apply any flow control. Instead, it allows data to be sent asynchronously as soon as it is written by the com.rti.dds.publication.DataWriter.
Essentially, this is equivalent to a user-created com.rti.dds.publication.FlowController with the following com.rti.dds.publication.FlowControllerProperty_t settings:
max_tokens
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_added_per_period
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_leaked_per_period
= 0 period
= 60 seconds
|
static |
Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in fixed-rate flow controller.
RTI Connext provides several builtin com.rti.dds.publication.FlowController for use with an asynchronous com.rti.dds.publication.DataWriter. The user can choose to use the built-in flow controllers and optionally modify their properties or can create a custom flow controller.
The built-in com.rti.dds.publication.FlowController.FIXED_RATE_FLOW_CONTROLLER_NAME flow controller shapes the network traffic by allowing data to be sent only once every second. Any accumulated samples destined for the same destination are coalesced into as few network packets as possible.
Essentially, this is equivalent to a user-created com.rti.dds.publication.FlowController with the following com.rti.dds.publication.FlowControllerProperty_t settings:
max_tokens
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_added_per_period
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_leaked_per_period
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED period
= 1 second
|
static |
Special value of com.rti.dds.infrastructure.PublishModeQosPolicy.flow_controller_name that refers to the built-in on-demand flow controller.
RTI Connext provides several builtin com.rti.dds.publication.FlowController for use with an asynchronous com.rti.dds.publication.DataWriter. The user can choose to use the built-in flow controllers and optionally modify their properties or can create a custom flow controller.
The built-in com.rti.dds.publication.FlowController.ON_DEMAND_FLOW_CONTROLLER_NAME allows data to be sent only when the user calls com.rti.dds.publication.FlowController.trigger_flow. With each trigger, all accumulated data since the previous trigger is sent (across all com.rti.dds.publication.Publisher or com.rti.dds.publication.DataWriter instances). In other words, the network traffic shape is fully controlled by the user. Any accumulated samples destined for the same destination are coalesced into as few network packets as possible.
This external trigger source is ideal for users who want to implement some form of closed-loop flow control or who want to only put data on the wire every so many samples (e.g. with the number of samples based on com.rti.ndds.transport.Transport.Property_t.gather_send_buffer_count_max).
Essentially, this is equivalent to a user-created com.rti.dds.publication.FlowController with the following com.rti.dds.publication.FlowControllerProperty_t settings:
max_tokens
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_added_per_period
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED tokens_leaked_per_period
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED period
= com.rti.dds.infrastructure.Duration_t.DURATION_INFINITE bytes_per_token
= com.rti.dds.infrastructure.ResourceLimitsQosPolicy.LENGTH_UNLIMITED