Package it.tidalwave.messagebus.spi
Interface MessageDelivery
-
- All Known Implementing Classes:
RoundRobinAsyncMessageDelivery,SimpleAsyncMessageDelivery
public interface MessageDeliveryA strategy for message delivery in theSimpleMessageBus.- Since:
- 2.2
- Author:
- Fabrizio Giudici
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> voiddeliverMessage(java.lang.Class<T> topic, T message)Delivers a message.voidinitialize(SimpleMessageBus messageBus)Initializes this object.
-
-
-
Method Detail
-
initialize
void initialize(@Nonnull SimpleMessageBus messageBus)Initializes this object.- Parameters:
messageBus- the message bus
-
deliverMessage
<T> void deliverMessage(@Nonnull java.lang.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 topicmessage- the message
-
-