Interface TopicListener<T>

  • Type Parameters:
    T - The type of message the listener will receive.

    public interface TopicListener<T>
    A TopicListener can subscribe topics for messages through a Notifier.
    • Method Detail

      • onMessage

        void onMessage​(java.lang.String topic,
                       T message)
        After the TopicListener has subscribed the topic, this method will be called when there is a new message for the topic.
        Parameters:
        topic - The topic this TopicListener subscribes.
        message - The message for the topic.