Public Member Functions | |
PublisherFactory (NodeIdentifier nodeIdentifier, TopicParticipantManager topicParticipantManager, MessageFactory messageFactory, ScheduledExecutorService executorService) | |
Package Functions | |
public< T > Publisher< T > | newOrExisting (TopicDeclaration topicDeclaration, MessageSerializer< T > messageSerializer) |
Private Attributes | |
final ScheduledExecutorService | executorService |
final MessageFactory | messageFactory |
final Object | mutex |
final NodeIdentifier | nodeIdentifier |
final TopicParticipantManager | topicParticipantManager |
A factory for Publisher instances.
Definition at line 33 of file PublisherFactory.java.
org.ros.internal.node.topic.PublisherFactory.PublisherFactory | ( | NodeIdentifier | nodeIdentifier, |
TopicParticipantManager | topicParticipantManager, | ||
MessageFactory | messageFactory, | ||
ScheduledExecutorService | executorService | ||
) | [inline] |
Definition at line 41 of file PublisherFactory.java.
public<T> Publisher<T> org.ros.internal.node.topic.PublisherFactory.newOrExisting | ( | TopicDeclaration | topicDeclaration, |
MessageSerializer< T > | messageSerializer | ||
) | [inline, package] |
Gets or creates a Publisher instance. Publishers are cached and reused per topic. When a new Publisher is generated, it is registered with the master.
<T> | the message type associated with the Publisher |
topicDeclaration | TopicDeclaration that is being published |
messageSerializer | the MessageSerializer used for published messages |
Definition at line 65 of file PublisherFactory.java.
final ScheduledExecutorService org.ros.internal.node.topic.PublisherFactory.executorService [private] |
Definition at line 37 of file PublisherFactory.java.
Definition at line 36 of file PublisherFactory.java.
final Object org.ros.internal.node.topic.PublisherFactory.mutex [private] |
Definition at line 39 of file PublisherFactory.java.
Definition at line 38 of file PublisherFactory.java.
final TopicParticipantManager org.ros.internal.node.topic.PublisherFactory.topicParticipantManager [private] |
Definition at line 35 of file PublisherFactory.java.