|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.topic.PublisherFactory
public class PublisherFactory
A factory for Publisher
instances.
Constructor Summary | |
---|---|
PublisherFactory(NodeIdentifier nodeIdentifier,
TopicParticipantManager topicParticipantManager,
MessageFactory messageFactory,
java.util.concurrent.ScheduledExecutorService executorService)
|
Method Summary | ||
---|---|---|
|
newOrExisting(TopicDeclaration topicDeclaration,
MessageSerializer<T> messageSerializer)
Gets or creates a Publisher instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublisherFactory(NodeIdentifier nodeIdentifier, TopicParticipantManager topicParticipantManager, MessageFactory messageFactory, java.util.concurrent.ScheduledExecutorService executorService)
Method Detail |
---|
public <T> Publisher<T> newOrExisting(TopicDeclaration topicDeclaration, MessageSerializer<T> messageSerializer)
Publisher
instance. Publisher
s 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 publishedmessageSerializer
- the MessageSerializer
used for published messages
Publisher
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |