Package it.tidalwave.messagebus
Class MessageBusHelper
- java.lang.Object
-
- it.tidalwave.messagebus.MessageBusHelper
-
public class MessageBusHelper extends java.lang.Object
- Author:
- Fabrizio Giudici
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MessageBusHelper.Adapter
static interface
MessageBusHelper.MethodAdapter<TOPIC>
-
Constructor Summary
Constructors Constructor Description MessageBusHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TOPIC> void
publish(java.lang.Class<TOPIC> topicType, TOPIC topic)
Publishes a message.void
publish(java.lang.Object message)
Publishes a message.void
subscribeAll()
void
unsubscribeAll()
-
-
-
Method Detail
-
subscribeAll
public void subscribeAll()
-
unsubscribeAll
public void unsubscribeAll()
-
publish
public void publish(@Nonnull java.lang.Object message)
Publishes a message.- Parameters:
message
- the message to deliver
-
publish
public <TOPIC> void publish(@Nonnull java.lang.Class<TOPIC> topicType, @Nonnull TOPIC topic)
Publishes a message.- Type Parameters:
TOPIC
- the static type of the topic- Parameters:
topicType
- the dynamic type of the topictopic
- the topic
-
-