Package it.tidalwave.messagebus.spi
Interface MessageDelivery
-
- All Known Implementing Classes:
RoundRobinAsyncMessageDelivery
,SimpleAsyncMessageDelivery
public interface MessageDelivery
A 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 <TOPIC> void
deliverMessage(java.lang.Class<TOPIC> topic, TOPIC message)
Delivers a message.void
initialize(SimpleMessageBus messageBus)
Initializes this object.
-
-
-
Method Detail
-
initialize
void initialize(@Nonnull SimpleMessageBus messageBus)
Initializes this object.- Parameters:
messageBus
- the message bus
-
deliverMessage
<TOPIC> void deliverMessage(@Nonnull java.lang.Class<TOPIC> topic, @Nonnull TOPIC message)
Delivers a message.- Type Parameters:
TOPIC
- the static type of the topic- Parameters:
topic
- the dynamic type of the topicmessage
- the message
-
-