java.lang.Object
org.neo4j.driver.internal.async.pool.NettyChannelTracker
- All Implemented Interfaces:
io.netty.channel.pool.ChannelPoolHandler
-
Constructor Summary
ConstructorDescriptionNettyChannelTracker
(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 TypeMethodDescriptionvoid
channelAcquired
(io.netty.channel.Channel channel) void
channelClosed
(io.netty.channel.Channel channel) void
channelCreated
(io.netty.channel.Channel channel) void
channelCreated
(io.netty.channel.Channel channel, ListenerEvent<?> creatingEvent) channelCreating
(String poolId) void
channelFailedToCreate
(String poolId) void
channelReleased
(io.netty.channel.Channel channel) int
idleChannelCount
(ServerAddress address) int
inUseChannelCount
(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:
channelReleased
in interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelAcquired
public void channelAcquired(io.netty.channel.Channel channel) - Specified by:
channelAcquired
in interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelCreated
public void channelCreated(io.netty.channel.Channel channel) - Specified by:
channelCreated
in interfaceio.netty.channel.pool.ChannelPoolHandler
-
channelCreated
-
channelCreating
-
channelFailedToCreate
-
channelClosed
public void channelClosed(io.netty.channel.Channel channel) -
inUseChannelCount
-
idleChannelCount
-
prepareToCloseChannels
public void prepareToCloseChannels()
-