public interface IMessageBus
| Modifier and Type | Method and Description |
|---|---|
void |
disableMessageBus()
Disables the message bus.
|
void |
enableMessageBus()
Enables the message bus.
|
void |
receiveMessage(IBusMessage busMessage)
Handles a generic message coming in from the message Bus, and converts it into the
specific contract types and dispatches it.
|
void |
sendMessage(IMessageContract message)
Takes the specific message, turns it into a generic message, and send to the message bus.
|
void receiveMessage(IBusMessage busMessage) throws HandleMessageFailureException
busMessage - The message being received.HandleMessageFailureException - When the handling of the message fails.void sendMessage(IMessageContract message) throws MessageSendingException
message - the message to sendMessageSendingException - When there is a failure in sending.void disableMessageBus()
throws MessageBusStateException
MessageBusStateException - When it is unable to result in a disabled state.void enableMessageBus()
throws MessageBusStateException
MessageBusStateExceptionCopyright © 2019. All rights reserved.