|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.internal.node.topic.SubscriberFactory
public class SubscriberFactory
A factory for Subscriber
instances.
Constructor Summary | |
---|---|
SubscriberFactory(NodeIdentifier nodeIdentifier,
TopicParticipantManager topicParticipantManager,
java.util.concurrent.ScheduledExecutorService executorService)
|
Method Summary | ||
---|---|---|
|
newOrExisting(TopicDeclaration topicDeclaration,
MessageDeserializer<T> messageDeserializer)
Gets or creates a Subscriber instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscriberFactory(NodeIdentifier nodeIdentifier, TopicParticipantManager topicParticipantManager, java.util.concurrent.ScheduledExecutorService executorService)
Method Detail |
---|
public <T> Subscriber<T> newOrExisting(TopicDeclaration topicDeclaration, MessageDeserializer<T> messageDeserializer)
Subscriber
instance. Subscriber
s are
cached and reused per topic. When a new Subscriber
is generated, it
is registered with the master.
T
- the message type associated with the new Subscriber
topicDeclaration
- TopicDeclaration
that is subscribed tomessageDeserializer
- the MessageDeserializer
to use for incoming messages
Subscriber
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |