RTI Connext Java API
Version 6.0.0
|
Kinds of publishing mode. More...
Static Public Attributes | |
static final PublishModeQosPolicyKind | SYNCHRONOUS_PUBLISH_MODE_QOS |
Indicates to send data synchronously. | |
static final PublishModeQosPolicyKind | ASYNCHRONOUS_PUBLISH_MODE_QOS |
Indicates to send data asynchronously. | |
Additional Inherited Members | |
![]() | |
final int | ordinal () |
The integral value of this enumerated constant. | |
Object | copy_from (Object src) |
final String | name () |
The name of this enum constant, as declared in the enum declaration. | |
final String | toString () |
The string value of this enum constant. | |
![]() | |
Enum (String name, int ordinal) | |
The constructor. | |
final Object | clone () throws CloneNotSupportedException |
Kinds of publishing mode.
|
static |
Indicates to send data synchronously.
If com.rti.dds.infrastructure.DataWriterProtocolQosPolicy.push_on_write is com.rti.dds.infrastructure.true, data is sent immediately in the context of com.rti.ndds.example.FooDataWriter.write.
As data is sent immediately in the context of the user thread, no flow control is applied.
[default] for com.rti.dds.publication.DataWriter
|
static |
Indicates to send data asynchronously.
Configures the com.rti.dds.publication.DataWriter to delegate the task of data transmission to a separate publishing thread. The com.rti.ndds.example.FooDataWriter.write call does not send the data, but instead schedules the data to be sent later by its associated com.rti.dds.publication.Publisher.
Each com.rti.dds.publication.Publisher uses its dedicated publishing thread (com.rti.dds.publication.PublisherQos.asynchronous_publisher) to send data for all its asynchronous DataWriters. For each asynchronous DataWriter, the associated com.rti.dds.publication.FlowController determines when the publishing thread is allowed to send the data.
com.rti.dds.publication.DataWriter.wait_for_asynchronous_publishing and com.rti.dds.publication.Publisher.wait_for_asynchronous_publishing enable you to determine when the data has actually been sent.