public interface TopicListener<T extends Serializable>
topic.
Note: onMessage(MessageEvent) is called from one of a limited number of message delivery
threads. If a callback needs to do significant processing, it should hand off the work to an Executor to
ensure the message delivery threads don't get tied up blocking future message delivery.
| Modifier and Type | Method and Description |
|---|---|
void |
onMessage(MessageEvent<T> message)
Callback method that is called when a message is published to the topic that the listener has subscribed to.
|
void onMessage(@Nonnull MessageEvent<T> message)
message - the messageCopyright © 2023 Atlassian. All rights reserved.