Interface MessageDelivery

All Known Implementing Classes:
RoundRobinAsyncMessageDelivery, SimpleAsyncMessageDelivery

public interface MessageDelivery
A strategy for message delivery in the SimpleMessageBus.
Since:
2.2
Author:
Fabrizio Giudici
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    deliverMessage(Class<T> topic, T message)
    Delivers a message.
    void
    Initializes this object.
  • Method Details

    • initialize

      void initialize(@Nonnull SimpleMessageBus messageBus)
      Initializes this object.
      Parameters:
      messageBus - the message bus
    • deliverMessage

      <T> void deliverMessage(@Nonnull Class<T> topic, @Nonnull T message)
      Delivers a message.
      Type Parameters:
      T - the static type of the topic
      Parameters:
      topic - the dynamic type of the topic
      message - the message