org.ros.node.topic
Interface PublisherListener<T>

All Superinterfaces:
RegistrantListener<Publisher<T>>
All Known Implementing Classes:
CountDownPublisherListener, DefaultPublisherListener

public interface PublisherListener<T>
extends RegistrantListener<Publisher<T>>

A lifecycle listener for Publisher instances.


Method Summary
 void onNewSubscriber(Publisher<T> publisher, SubscriberIdentifier subscriberIdentifier)
          A Subscriber has connected to the Publisher.
 void onShutdown(Publisher<T> publisher)
          The Publisher has been shut down.
 
Methods inherited from interface org.ros.internal.node.RegistrantListener
onMasterRegistrationFailure, onMasterRegistrationSuccess, onMasterUnregistrationFailure, onMasterUnregistrationSuccess
 

Method Detail

onNewSubscriber

void onNewSubscriber(Publisher<T> publisher,
                     SubscriberIdentifier subscriberIdentifier)
A Subscriber has connected to the Publisher.

Parameters:
publisher - the Publisher that the Subscriber connected to
subscriberIdentifier - the SubscriberIdentifier of the new Subscriber

onShutdown

void onShutdown(Publisher<T> publisher)
The Publisher has been shut down.

Parameters:
publisher - the Publisher that was shut down