public interface ChannelHealthChecker
Channel will be returned via NettyChannelPool.acquire(InetSocketAddress) or
NettyChannelPool.acquire(InetSocketAddress, CompletableFuture).| Modifier and Type | Field and Description |
|---|---|
static ChannelHealthChecker |
ACTIVE
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
isHealthy(io.netty.channel.Channel channel)
Check if the given channel is healthy which means it can be used.
|
static final ChannelHealthChecker ACTIVE
CompletableFuture<Boolean> isHealthy(io.netty.channel.Channel channel)
CompletableFuture is notified once
the check is complete. If notified with Boolean.TRUE it can be used Boolean.FALSE otherwise.
This method will be called by the EventLoop of the Channel.
channel - a Channel objectCompletableFuture objectCopyright © 2016–2024. All rights reserved.