Class EnvelopedMessageDispatcher

All Implemented Interfaces:
IMessageDispatcher, ISubscriptionContextAware

public class EnvelopedMessageDispatcher extends DelegatingMessageDispatcher
The enveloped dispatcher will wrap published messages in an envelope before passing them to their configured dispatcher.

All enveloped message handlers will have this dispatcher in their chain

  • Constructor Details

    • EnvelopedMessageDispatcher

      public EnvelopedMessageDispatcher(IMessageDispatcher dispatcher)
  • Method Details

    • dispatch

      public void dispatch(MessagePublication publication, Object message, Iterable listeners)
      Description copied from interface: IMessageDispatcher
      Delivers the given message to the given set of listeners. Delivery may be delayed, aborted or restricted in various ways, depending on the configuration of the dispatcher
      Parameters:
      publication - The message publication that initiated the dispatch
      message - The message that should be delivered to the listeners
      listeners - The listeners that should receive the message