Package it.tidalwave.messagebus.spi
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 TypeMethodDescription<T> void
deliverMessage
(Class<T> topic, T message) Delivers a message.void
initialize
(SimpleMessageBus messageBus) Initializes this object.
-
Method Details
-
initialize
Initializes this object.- Parameters:
messageBus
- the message bus
-
deliverMessage
Delivers a message.- Type Parameters:
T
- the static type of the topic- Parameters:
topic
- the dynamic type of the topicmessage
- the message
-