|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.node.topic.DefaultPublisherListener<T>
public class DefaultPublisherListener<T>
A PublisherListener
which provides empty defaults for all signals.
Constructor Summary | |
---|---|
DefaultPublisherListener()
|
Method Summary | |
---|---|
void |
onMasterRegistrationFailure(Publisher<T> publisher)
The registrant has failed to register with the master. |
void |
onMasterRegistrationSuccess(Publisher<T> publisher)
The registrant has been registered with the master. |
void |
onMasterUnregistrationFailure(Publisher<T> publisher)
The registrant has failed to unregister with the master. |
void |
onMasterUnregistrationSuccess(Publisher<T> publisher)
The registrant has been unregistered with the master. |
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPublisherListener()
Method Detail |
---|
public void onMasterRegistrationSuccess(Publisher<T> publisher)
RegistrantListener
onMasterRegistrationSuccess
in interface RegistrantListener<Publisher<T>>
publisher
- the registrant which has been registeredpublic void onMasterRegistrationFailure(Publisher<T> publisher)
RegistrantListener
This may be called multiple times per registrant since master registration will be retried until success.
onMasterRegistrationFailure
in interface RegistrantListener<Publisher<T>>
publisher
- the registrant which has been registeredpublic void onMasterUnregistrationSuccess(Publisher<T> publisher)
RegistrantListener
onMasterUnregistrationSuccess
in interface RegistrantListener<Publisher<T>>
publisher
- the registrant which has been unregisteredpublic void onMasterUnregistrationFailure(Publisher<T> publisher)
RegistrantListener
This may be called multiple times per registrant since master unregistration will be retried until success.
onMasterUnregistrationFailure
in interface RegistrantListener<Publisher<T>>
publisher
- the registrant which has been unregisteredpublic void onNewSubscriber(Publisher<T> publisher, SubscriberIdentifier subscriberIdentifier)
PublisherListener
Subscriber
has connected to the Publisher
.
onNewSubscriber
in interface PublisherListener<T>
publisher
- the Publisher
that the Subscriber
connected tosubscriberIdentifier
- the SubscriberIdentifier
of the new Subscriber
public void onShutdown(Publisher<T> publisher)
PublisherListener
Publisher
has been shut down.
onShutdown
in interface PublisherListener<T>
publisher
- the Publisher
that was shut down
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |