Constructor
new Publisher()
Internal use only. Use Participant.createPublisher()
Extends:
- See:
-
- QoS.publisherDefault() to create a QoS object for a publisher
- QoSProvider.getPubisherQos() on retreiving an externally publisher QoS policy from a QoSProvider.
Extends
Members
qos :module:vortexdds.QoS
The existing QoS policies for the entity.
Type:
- Overrides:
Methods
createStatusCondition(maskopt) → {module:vortexdds.StatusCondition}
Creates a StatusCondition for use in wait set.
Omitting the mask value results in all entity-appropriate status conditions being enabled.
Note that DDS resources and memory consumed by conditions cannot be automatically reclaimed by the NodeJS engine. Conditions are automatically deleted when the parent entity is deleted. Otherwise, when your application is finished with a Condition, you may call Condition.delete() to release these DDS resources.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
mask |
module:vortexdds.StatusMask |
<optional> |
null | mask of StatusMask values of interest |
Throws:
-
if the status mask is invalid
Returns:
createWriter(topic, qosopt, listeneropt) → {module:vortexdds.Writer}
Creates a Reader for a topic on the 'default publisher' of the participant.
Similar to Participant.createWriter() except that a Writer created based in QoS properties of this publisher.
The writer belongs to the publisher from which it is created, and is automatically deleted when the participant is deleted.
Note that DDS resources and memory consumed by DDS entities cannot be automatically reclaimed by the NodeJS engine. Once your application is finished with an Entity, you must call delete() to release these DDS resources.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
topic |
module:vortexdds.Topic | the topic to which data will be written |
||
qos |
module:vortexdds.QoS |
<optional> |
QoS.writerDefault() | quality-of-service policies for the writer. If no argument is provided, then QoS.writerDefault() is used, whereas passing in a null value results in the topic's qos to be used. |
listener |
module:vortexdds~WriterListener |
<optional> |
null | an object defining listener callbacks for the writer |
Throws:
-
if the writer cannot be created
Returns:
the Writer instance
delete() → {external:Promise}
Releases the DDS resources associated with the entity and all its 'child' entities.
In some cases, releasing DDS resources can take several seconds. This methods returns a Promise that enables you to do processing after all the resources have been released.
- Overrides:
Returns:
- Type
- external:Promise
statusChanges() → {module:vortexdds.StatusMask}
Return the DDS communication statuses that have changed since this method was last called.
- Overrides:
Returns:
a mask of statuses that have changed