public interface Registration
MessageHandler or
MessageHandler or to cancel recurring publishes.
For example, when using a Subscription, you may add a MessageHandler
using the Subscription.addMessageHandler(nats.client.MessageHandler) method. This method returns
an instance of Registration. When the remove() method is invoked, the MessageHandler is
removed from the Subscription and will no longer be called when new messages arrive on the
Subscription.
| Modifier and Type | Method and Description |
|---|---|
void |
remove()
Removes the handler associated with this
Registration. |
Copyright © 2015. All Rights Reserved.