Package io.netty.channel.pool
Interface ChannelHealthChecker
-
public interface ChannelHealthChecker
-
-
Field Summary
Fields Modifier and Type Field Description static ChannelHealthChecker
ACTIVE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Future<Boolean>
isHealthy(Channel channel)
Check if the given channel is healthy which means it can be used.
-
-
-
Field Detail
-
ACTIVE
static final ChannelHealthChecker ACTIVE
-
-
Method Detail
-
isHealthy
Future<Boolean> isHealthy(Channel channel)
Check if the given channel is healthy which means it can be used. The returnedFuture
is notified once the check is complete. If notified withBoolean.TRUE
it can be usedBoolean.FALSE
otherwise. This method will be called by theEventLoop
of theChannel
.
-
-