Class MessageBusHelper


  • public class MessageBusHelper
    extends java.lang.Object
    Author:
    Fabrizio Giudici
    • Constructor Detail

      • MessageBusHelper

        public MessageBusHelper()
    • Method Detail

      • subscribeAll

        public void subscribeAll()
      • unsubscribeAll

        public void unsubscribeAll()
      • publish

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

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