public interface

TopicListener

com.atlassian.bitbucket.topic.TopicListener<T extends java.io.Serializable>

Class Overview

Callback interface for messages sent to a TopicService#subscribe(String, TopicListener) 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.

Summary

Public Methods
void onMessage(MessageEvent<T> message)
Callback method that is called when a message is published to the topic that the listener has subscribed to.

Public Methods

public void onMessage (MessageEvent<T> message)

Callback method that is called when a message is published to the topic that the listener has subscribed to.

Parameters
message the message