| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the Subscriber may only subscribe to messages of this typepublic interface Subscriber<T>
Subscribes to messages of a given type on a given ROS topic.
| Field Summary | |
|---|---|
static java.lang.String | 
TOPIC_MESSAGE_TYPE_WILDCARD
The message type given when a Subscriber chooses not to commit to a
 specific message type. | 
| Method Summary | |
|---|---|
 void | 
addMessageListener(MessageListener<T> listener)
 | 
 void | 
addSubscriberListener(SubscriberListener<T> listener)
Add a new lifecycle listener to the subscriber.  | 
 boolean | 
getLatchMode()
 | 
 int | 
getQueueLimit()
 | 
 void | 
removeMessageListener(MessageListener<T> listener)
 | 
 void | 
removeSubscriberListener(SubscriberListener<T> listener)
Remove a lifecycle listener from the subscriber.  | 
 void | 
setQueueLimit(int limit)
 | 
 void | 
shutdown()
Shuts down and unregisters the Subscriber using the default timeout
 for SubscriberListener.onShutdown(Subscriber) callbacks. | 
 void | 
shutdown(long timeout,
         java.util.concurrent.TimeUnit unit)
Shuts down and unregisters the Subscriber. | 
| Methods inherited from interface org.ros.internal.node.topic.TopicParticipant | 
|---|
getTopicMessageType, getTopicName | 
| Field Detail | 
|---|
static final java.lang.String TOPIC_MESSAGE_TYPE_WILDCARD
Subscriber chooses not to commit to a
 specific message type.
| Method Detail | 
|---|
void addMessageListener(MessageListener<T> listener)
listener - this MessageListener will be called for every new message
          receivedvoid removeMessageListener(MessageListener<T> listener)
listener - the MessageListener to remove
void shutdown(long timeout,
              java.util.concurrent.TimeUnit unit)
Subscriber. using the default
 timeout Shutdown is delayed by at most the specified timeout to allow
 SubscriberListener.onShutdown(Subscriber) callbacks to complete.
 
 
 SubscriberListener.onShutdown(Subscriber) callbacks are executed in
 separate threads.
void shutdown()
Subscriber using the default timeout
 for SubscriberListener.onShutdown(Subscriber) callbacks.
 
 
 SubscriberListener.onShutdown(Subscriber) callbacks are executed in
 separate threads.
shutdown(long, TimeUnit)void addSubscriberListener(SubscriberListener<T> listener)
listener - The listener to add.void removeSubscriberListener(SubscriberListener<T> listener)
Nothing will happen if the given listener is not registered.
listener - The listener to remove.void setQueueLimit(int limit)
limit - the maximum number of incoming messages to queue (i.e. buffer)int getQueueLimit()
boolean getLatchMode()
true if the Publisher of this Subscriber's
         topic is latched, false otherwise
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||