Interface ITopic<T>


public interface ITopic<T>
Messaging topic interface
Author:
hengsin
  • Method Summary

    Modifier and Type
    Method
    Description
    Get topic name
    void
    publish(T message)
    Publish message to this messaging topic
    void
    Subscribe to this messaging topic
    void
    Unsubscribe subscriber from this messaging topic
  • Method Details

    • getName

      String getName()
      Get topic name
      Returns:
      topic name
    • subscribe

      void subscribe(ITopicSubscriber<T> subscriber)
      Subscribe to this messaging topic
      Parameters:
      subscriber -
    • unsubscribe

      void unsubscribe(ITopicSubscriber<T> subscriber)
      Unsubscribe subscriber from this messaging topic
      Parameters:
      subscriber -
    • publish

      void publish(T message)
      Publish message to this messaging topic
      Parameters:
      message -