| com.atlassian.bitbucket.topic.Topic<T extends java.io.Serializable> |
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Publishes a message to all (both local and on other cluster nodes) listeners of the topic.
| |||||||||||
Subscribes the provided listener to the topic.
| |||||||||||
Unsubscribes a listener.
| |||||||||||
Publishes a message to all (both local and on other cluster nodes) listeners of the topic.
| message | the message |
|---|
Subscribes the provided listener to the topic. The listener will receive callbacks for every message published to the topic after the listener was subscribed.
| listener | the listener that should receive callbacks when a message is published to the topic |
|---|
unsubscribe.
Unsubscribes a listener. The listener will receive no more messages from the topic.
| subscriptionId | the subscription ID that was returned by subscribe(TopicListener) |
|---|
true if the listener was successfully unsubscribed, otherwise false