Module org.neo4j.driver
Class NettyChannelHealthChecker
java.lang.Object
org.neo4j.driver.internal.async.pool.NettyChannelHealthChecker
- All Implemented Interfaces:
io.netty.channel.pool.ChannelHealthChecker,AuthorizationStateListener
public class NettyChannelHealthChecker
extends Object
implements io.netty.channel.pool.ChannelHealthChecker, AuthorizationStateListener
-
Field Summary
Fields inherited from interface io.netty.channel.pool.ChannelHealthChecker
ACTIVE -
Constructor Summary
ConstructorsConstructorDescriptionNettyChannelHealthChecker(PoolSettings poolSettings, Clock clock, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.concurrent.Future<Boolean>isHealthy(io.netty.channel.Channel channel) voidonExpired(AuthorizationExpiredException e, io.netty.channel.Channel channel) Notifies the listener that the credentials stored on the server side have expired.
-
Constructor Details
-
NettyChannelHealthChecker
-
-
Method Details
-
isHealthy
- Specified by:
isHealthyin interfaceio.netty.channel.pool.ChannelHealthChecker
-
onExpired
Description copied from interface:AuthorizationStateListenerNotifies the listener that the credentials stored on the server side have expired.- Specified by:
onExpiredin interfaceAuthorizationStateListener- Parameters:
e- theAuthorizationExpiredExceptionexception.channel- the channel that received the error.
-