Package it.tidalwave.messagebus.spi
Class SimpleAsyncMessageDelivery
- java.lang.Object
-
- it.tidalwave.messagebus.spi.SimpleAsyncMessageDelivery
-
- All Implemented Interfaces:
MessageDelivery
public class SimpleAsyncMessageDelivery extends java.lang.Object implements MessageDelivery
An implementation ofMessageDeliverythat dispatches messages as they are delivered, each one in a separated thread.- Since:
- 2.2
- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description SimpleAsyncMessageDelivery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TOPIC> voiddeliverMessage(java.lang.Class<TOPIC> topic, TOPIC message)Delivers a message.voidinitialize(SimpleMessageBus messageBusSupport)Initializes this object.
-
-
-
Method Detail
-
initialize
public void initialize(@Nonnull SimpleMessageBus messageBusSupport)Description copied from interface:MessageDeliveryInitializes this object.- Specified by:
initializein interfaceMessageDelivery- Parameters:
messageBusSupport- the message bus
-
deliverMessage
public <TOPIC> void deliverMessage(@Nonnull java.lang.Class<TOPIC> topic, @Nonnull TOPIC message)Description copied from interface:MessageDeliveryDelivers a message.- Specified by:
deliverMessagein interfaceMessageDelivery- Type Parameters:
TOPIC- the static type of the topic- Parameters:
topic- the dynamic type of the topicmessage- the message
-
-