Public Member Functions | Package Functions | Private Attributes
org.ros.internal.node.topic.PublisherFactory Class Reference

List of all members.

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

Detailed Description

A factory for Publisher instances.

Author:
damonkohler@google.com (Damon Kohler)

Definition at line 33 of file PublisherFactory.java.


Constructor & Destructor Documentation

org.ros.internal.node.topic.PublisherFactory.PublisherFactory ( NodeIdentifier  nodeIdentifier,
TopicParticipantManager  topicParticipantManager,
MessageFactory  messageFactory,
ScheduledExecutorService  executorService 
) [inline]

Definition at line 41 of file PublisherFactory.java.


Member Function Documentation

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.

Parameters:
<T>the message type associated with the Publisher
topicDeclarationTopicDeclaration that is being published
messageSerializerthe MessageSerializer used for published messages
Returns:
a new or cached Publisher instance

Definition at line 65 of file PublisherFactory.java.


Member Data Documentation

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.

Definition at line 39 of file PublisherFactory.java.

Definition at line 38 of file PublisherFactory.java.

Definition at line 35 of file PublisherFactory.java.


The documentation for this class was generated from the following file:


rosjava_core
Author(s):
autogenerated on Wed Aug 26 2015 16:06:51