public class RabbitMqChannelImpl extends Object implements OnDemandChannelSupervisor
OnDemandChannelSupervisor| Constructor and Description |
|---|
RabbitMqChannelImpl(RabbitMqSystemListener rabbitMqSystemListener,
WhoAmIReader whoAmIReader,
String sdkVersion,
AmqpConnectionFactory connectionFactory,
TimeUtils timeUtils,
Sleep sleep)
Initializes a new instance of the
RabbitMqChannelImpl |
| Modifier and Type | Method and Description |
|---|---|
com.sportradar.unifiedodds.sdk.internal.impl.rabbitconnection.ChannelStatus |
checkStatus()
Checks channel status on demand
|
void |
close()
Terminates the current channel
|
void |
open(List<String> routingKeys,
ChannelMessageConsumer channelMessageConsumer,
String messageInterest)
Opens the current channel and binds the created queue to the provided routing keys
|
@Inject public RabbitMqChannelImpl(RabbitMqSystemListener rabbitMqSystemListener, WhoAmIReader whoAmIReader, String sdkVersion, AmqpConnectionFactory connectionFactory, TimeUtils timeUtils, Sleep sleep)
RabbitMqChannelImplrabbitMqSystemListener - a RabbitMqSystemListener instance used to dispatch system eventswhoAmIReader - a WhoAmIReader used to access current SDK instance context informationsdkVersion - version of the sdkconnectionFactory - Connection factory for getting actual connectiontimeUtils - a time utility classpublic void open(List<String> routingKeys, ChannelMessageConsumer channelMessageConsumer, String messageInterest) throws IOException
open in interface OnDemandChannelSupervisorroutingKeys - - a List of routing keys which should be bindedchannelMessageConsumer - - a ChannelMessageConsumer which consumes the received payloadsmessageInterest - message interest this channel is linked toIOException - if the routing keys bind failedpublic void close()
throws IOException
close in interface OnDemandChannelSupervisorIOException - if the channel closure failedpublic com.sportradar.unifiedodds.sdk.internal.impl.rabbitconnection.ChannelStatus checkStatus()
OnDemandChannelSupervisorcheckStatus in interface OnDemandChannelSupervisorCopyright © 2016–2025. All rights reserved.