Interface MessageReceiver
- All Known Implementing Classes:
RabbitMqMessageReceiver
public interface MessageReceiver
Defines methods implemented by classes capable of receiving messages from the feed
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the current instance so it will no longer receive messagesvoidopen(List<String> routingKeys, MessageConsumer messageConsumer) Opens the current instance so it starts receiving messages
-
Method Details
-
open
Opens the current instance so it starts receiving messages- Parameters:
routingKeys- - aListof requested routing keysmessageConsumer- - aMessageConsumerinstance which will receive messages- Throws:
IOException- if the channel failed to open
-
close
Closes the current instance so it will no longer receive messages- Throws:
IOException- if the channel closure encountered a problem
-