Package com.atlassian.bitbucket.topic
Interface TopicListener<T extends Serializable>
public interface TopicListener<T extends Serializable>
Callback interface for messages sent to a
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonMessage(MessageEvent<T> message) Callback method that is called when a message is published to the topic that the listener has subscribed to.
-
Method Details
-
onMessage
Callback method that is called when a message is published to the topic that the listener has subscribed to.- Parameters:
message- the message
-