public class LogFileChannel extends Object implements com.sportradar.unifiedodds.sdk.impl.RabbitMqChannel
Constructor and Description |
---|
LogFileChannel(File fileHandle) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Terminates the current channel
|
boolean |
isOpened()
Indicates if the associated channel instance is opened
|
void |
open(List<String> routingKeys,
com.sportradar.unifiedodds.sdk.impl.ChannelMessageConsumer channelMessageConsumer,
String messageInterest)
Opens the current channel and binds the created queue to the provided routing keys
|
public LogFileChannel(File fileHandle)
public void open(List<String> routingKeys, com.sportradar.unifiedodds.sdk.impl.ChannelMessageConsumer channelMessageConsumer, String messageInterest)
open
in interface com.sportradar.unifiedodds.sdk.impl.RabbitMqChannel
routingKeys
- - a List
of routing keys which should be bindedchannelMessageConsumer
- - a ChannelMessageConsumer
which consumes the received payloadsmessageInterest
- - message interest this channel is linked topublic void close()
close
in interface com.sportradar.unifiedodds.sdk.impl.RabbitMqChannel
public boolean isOpened()
isOpened
in interface com.sportradar.unifiedodds.sdk.impl.RabbitMqChannel
true
if the channel is opened; false
otherwiseCopyright © 2016–2022. All rights reserved.