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

List of all members.

Public Member Functions

 SubscriberFactory (NodeIdentifier nodeIdentifier, TopicParticipantManager topicParticipantManager, ScheduledExecutorService executorService)

Package Functions

public< T > Subscriber< T > newOrExisting (TopicDeclaration topicDeclaration, MessageDeserializer< T > messageDeserializer)

Private Attributes

final ScheduledExecutorService executorService
final Object mutex
final NodeIdentifier nodeIdentifier
final TopicParticipantManager topicParticipantManager

Detailed Description

A factory for Subscriber instances.

Author:
damonkohler@google.com (Damon Kohler)

Definition at line 32 of file SubscriberFactory.java.


Constructor & Destructor Documentation

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

Definition at line 39 of file SubscriberFactory.java.


Member Function Documentation

public<T> Subscriber<T> org.ros.internal.node.topic.SubscriberFactory.newOrExisting ( TopicDeclaration  topicDeclaration,
MessageDeserializer< T >  messageDeserializer 
) [inline, package]

Gets or creates a Subscriber instance. Subscribers are cached and reused per topic. When a new Subscriber is generated, it is registered with the master.

Parameters:
<T>the message type associated with the new Subscriber
topicDeclarationTopicDeclaration that is subscribed to
messageDeserializerthe MessageDeserializer to use for incoming messages
Returns:
a new or cached Subscriber instance

Definition at line 61 of file SubscriberFactory.java.


Member Data Documentation

final ScheduledExecutorService org.ros.internal.node.topic.SubscriberFactory.executorService [private]

Definition at line 36 of file SubscriberFactory.java.

Definition at line 37 of file SubscriberFactory.java.

Definition at line 34 of file SubscriberFactory.java.

Definition at line 35 of file SubscriberFactory.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