public class RabbitMqMessageReceiver extends Object implements 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
|
public void open(List<String> routingKeys, MessageConsumer messageConsumer) throws IOException
open in interface MessageReceiverroutingKeys - a List of requested routing keysmessageConsumer - a MessageConsumer instance which will receive messagesIOException - if the RabbitMq channel failed to openpublic void close()
throws IOException
close in interface MessageReceiverIOException - if the RabbitMq channel closure encountered a problemCopyright © 2016–2025. All rights reserved.