Interface MessageBusHelper.MethodAdapter<T>

Type Parameters:
T - the static type of the topic
Enclosing class:
MessageBusHelper

public static interface MessageBusHelper.MethodAdapter<T>
The binding of a listener method to a message bus, which can subscribe and unsubscribe it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Subscribes the listener method to the message bus.
    void
    Unsubscribes the listener method from the message bus.
  • Method Details

    • subscribe

      void subscribe()
      Subscribes the listener method to the message bus.
    • unsubscribe

      void unsubscribe()
      Unsubscribes the listener method from the message bus.