Package io.netty.channel.pool
Interface ChannelHealthChecker
-
public interface ChannelHealthChecker
-
-
Field Summary
Fields Modifier and Type Field Description static ChannelHealthCheckerACTIVE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.netty.util.concurrent.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
io.netty.util.concurrent.Future<Boolean> isHealthy(Channel channel)
Check if the given channel is healthy which means it can be used. The returnedFutureis notified once the check is complete. If notified withBoolean.TRUEit can be usedBoolean.FALSEotherwise. This method will be called by theEventLoopof theChannel.
-
-