RTI Connext Java API  Version 5.3.1
 All Classes Namespaces Functions Variables Groups Pages
PublishModeQosPolicyKind Class Reference

Kinds of publishing mode. More...

Inheritance diagram for PublishModeQosPolicyKind:
Enum Copyable

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

- Public Member Functions inherited from Enum
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.
 
- Protected Member Functions inherited from Enum
 Enum (String name, int ordinal)
 The constructor.
 
final Object clone () throws CloneNotSupportedException
 

Detailed Description

Member Data Documentation

final PublishModeQosPolicyKind SYNCHRONOUS_PUBLISH_MODE_QOS
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.

See Also
com.rti.dds.infrastructure.DataWriterProtocolQosPolicy.push_on_write

[default] for com.rti.dds.publication.DataWriter

final PublishModeQosPolicyKind ASYNCHRONOUS_PUBLISH_MODE_QOS
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.

See Also
com.rti.dds.publication.FlowController
com.rti.dds.infrastructure.HistoryQosPolicy
com.rti.dds.publication.DataWriter.wait_for_asynchronous_publishing
com.rti.dds.publication.Publisher.wait_for_asynchronous_publishing
com.rti.ndds.transport.Transport.Property_t.gather_send_buffer_count_max

RTI Connext Java API Version 5.3.1 Copyright © Mon Feb 19 2018 Real-Time Innovations, Inc