Class SimpleAsyncMessageDelivery

  • All Implemented Interfaces:
    MessageDelivery

    public class SimpleAsyncMessageDelivery
    extends java.lang.Object
    implements MessageDelivery
    An implementation of MessageDelivery that dispatches messages as they are delivered, each one in a separated thread.
    Since:
    2.2
    Author:
    Fabrizio Giudici
    • Constructor Detail

      • SimpleAsyncMessageDelivery

        public SimpleAsyncMessageDelivery()
    • Method Detail

      • deliverMessage

        public <T> void deliverMessage​(@Nonnull
                                       java.lang.Class<T> topic,
                                       @Nonnull
                                       T message)
        Description copied from interface: MessageDelivery
        Delivers a message.
        Specified by:
        deliverMessage in interface MessageDelivery
        Type Parameters:
        T - the static type of the topic
        Parameters:
        topic - the dynamic type of the topic
        message - the message