public interface IMessageBusAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(List<String> messageCodes,
List<String> handlerCodes) |
void |
registerMessageBusService(IMessageBus messageBus)
Registers the messageBusService.
|
void |
sendMessage(IBusMessage message)
Sends a message out to the bus implementation.
|
void |
start()
Starts Consuming messages.
|
void |
stop()
Stops consuming incoming messages.
|
void initialize(List<String> messageCodes, List<String> handlerCodes) throws MessageBusInitializationException
messageCodes - The codes for all the messages in scope (Exchanges)handlerCodes - The codes the there are handlers for (Exchanges we need a queue which we are subscribed to)MessageBusInitializationException - On failure to initializevoid sendMessage(IBusMessage message) throws MessageSendingException
message - Message to send to the BusMessageSendingException - If an error occursvoid registerMessageBusService(IMessageBus messageBus)
messageBus - the message bus service.void stop() throws MessageBusStateException
MessageBusStateExceptionvoid start()
throws MessageBusStateException
MessageBusStateExceptionCopyright © 2019. All rights reserved.