Class MessageBusHelper

java.lang.Object
it.tidalwave.messagebus.MessageBusHelper

public class MessageBusHelper extends Object
Author:
Fabrizio Giudici
  • Constructor Details

    • MessageBusHelper

      public MessageBusHelper()
  • Method Details

    • subscribeAll

      public void subscribeAll()
    • unsubscribeAll

      public void unsubscribeAll()
    • publish

      public void publish(@Nonnull Object message)
      Publishes a message.
      Parameters:
      message - the message to deliver
    • publish

      public <T> void publish(@Nonnull Class<T> topicType, @Nonnull T topic)
      Publishes a message.
      Type Parameters:
      T - the static type of the topic
      Parameters:
      topicType - the dynamic type of the topic
      topic - the topic