Interface OnDemandChannelSupervisor
- All Known Implementing Classes:
RabbitMqChannelImpl
public interface OnDemandChannelSupervisor
Defines methods implemented by classes used to connect to the RabbitMQ broker
-
Method Summary
Modifier and TypeMethodDescriptioncom.sportradar.unifiedodds.sdk.internal.impl.rabbitconnection.ChannelStatusChecks channel status on demandvoidclose()Terminates the current channelvoidopen(List<String> routingKeys, ChannelMessageConsumer channelMessageConsumer, String messageInterest) Opens the current channel and binds the created queue to the provided routing keys
-
Method Details
-
open
void open(List<String> routingKeys, ChannelMessageConsumer channelMessageConsumer, String messageInterest) throws IOException Opens the current channel and binds the created queue to the provided routing keys- Parameters:
routingKeys- - aListof routing keys which should be bindedchannelMessageConsumer- - aChannelMessageConsumerwhich consumes the received payloadsmessageInterest- message interest this channel is linked to- Throws:
IOException- if the routing keys bind failed
-
close
Terminates the current channel- Throws:
IOException- if the channel closure failed
-
checkStatus
com.sportradar.unifiedodds.sdk.internal.impl.rabbitconnection.ChannelStatus checkStatus()Checks channel status on demand
-