public interface ChannelPool extends AutoCloseable
Channel and close when sending messages.
Implementations would typically make it possible to re-use
Channels across different calls to Sender#send* methods.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the pool when it is no longer necessary.
|
java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> |
getChannelCloseHandler()
The closing logic when the
Channel is disposed. |
Mono<? extends com.rabbitmq.client.Channel> |
getChannelMono()
The
Channel to use for sending a flux of messages. |
Mono<? extends com.rabbitmq.client.Channel> getChannelMono()
Channel to use for sending a flux of messages.java.util.function.BiConsumer<SignalType,com.rabbitmq.client.Channel> getChannelCloseHandler()
Channel is disposed.void close()
close in interface AutoCloseable