public interface MessageReceiver
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the current instance so it will no longer receive messages
|
void |
open(List<String> routingKeys,
MessageConsumer messageConsumer)
Opens the current instance so it starts receiving messages
|
void open(List<String> routingKeys, MessageConsumer messageConsumer) throws IOException
routingKeys
- - a List
of requested routing keysmessageConsumer
- - a MessageConsumer
instance which will receive messagesIOException
- if the channel failed to openvoid close() throws IOException
IOException
- if the channel closure encountered a problemCopyright © 2016–2025. All rights reserved.