java.lang.Object
org.neo4j.driver.internal.async.pool.NettyChannelTracker
- All Implemented Interfaces:
io.netty.channel.pool.ChannelPoolHandler
-
Constructor Summary
ConstructorsConstructorDescriptionNettyChannelTracker(MetricsListener metricsListener, io.netty.channel.group.ChannelGroup channels, Logging logging) NettyChannelTracker(MetricsListener metricsListener, io.netty.util.concurrent.EventExecutor eventExecutor, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelAcquired(io.netty.channel.Channel channel) voidchannelClosed(io.netty.channel.Channel channel) voidchannelCreated(io.netty.channel.Channel channel) voidchannelCreated(io.netty.channel.Channel channel, ListenerEvent<?> creatingEvent) channelCreating(String poolId) voidchannelFailedToCreate(String poolId) voidchannelReleased(io.netty.channel.Channel channel) intidleChannelCount(ServerAddress address) intinUseChannelCount(ServerAddress address) void
-
Constructor Details
-
NettyChannelTracker
public NettyChannelTracker(MetricsListener metricsListener, io.netty.util.concurrent.EventExecutor eventExecutor, Logging logging) -
NettyChannelTracker
public NettyChannelTracker(MetricsListener metricsListener, io.netty.channel.group.ChannelGroup channels, Logging logging)
-
-
Method Details
-
channelReleased
public void channelReleased(io.netty.channel.Channel channel) - Specified by:
channelReleasedin interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelAcquired
public void channelAcquired(io.netty.channel.Channel channel) - Specified by:
channelAcquiredin interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelCreated
public void channelCreated(io.netty.channel.Channel channel) - Specified by:
channelCreatedin interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelCreated
-
channelCreating
-
channelFailedToCreate
-
channelClosed
public void channelClosed(io.netty.channel.Channel channel) -
inUseChannelCount
-
idleChannelCount
-
prepareToCloseChannels
public void prepareToCloseChannels()
-