Top Description Fields Methods
io.netty.channel.pool

public Interface ChannelHealthChecker

Imports
io.netty.channel.Channel, .EventLoop, io.netty.util.concurrent.Future, .Promise

Called before a Channel will be returned via ChannelPool#acquire() or ChannelPool#acquire(Promise).

Field Summary

Modifier and TypeField and Description
public static final ChannelHealthChecker
ACTIVE

ChannelHealthChecker implementation that checks if Channel#isActive() returns true.

Method Summary

Modifier and TypeMethod and Description
public Future<Boolean>
isHealthy(Channel channel)

Check if the given channel is healthy which means it can be used.

Field Detail

ACTIVEback to summary
public static final ChannelHealthChecker ACTIVE

ChannelHealthChecker implementation that checks if Channel#isActive() returns true.

Method Detail

isHealthyback to summary
public Future<Boolean> isHealthy(Channel channel)

Check if the given channel is healthy which means it can be used. The returned Future 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.