Class NettyChannelTracker

java.lang.Object
org.neo4j.driver.internal.async.pool.NettyChannelTracker
All Implemented Interfaces:
io.netty.channel.pool.ChannelPoolHandler

public class NettyChannelTracker extends Object implements io.netty.channel.pool.ChannelPoolHandler
  • 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 interface io.netty.channel.pool.ChannelPoolHandler
    • channelAcquired

      public void channelAcquired(io.netty.channel.Channel channel)
      Specified by:
      channelAcquired in interface io.netty.channel.pool.ChannelPoolHandler
    • channelCreated

      public void channelCreated(io.netty.channel.Channel channel)
      Specified by:
      channelCreated in interface io.netty.channel.pool.ChannelPoolHandler
    • channelCreated

      public void channelCreated(io.netty.channel.Channel channel, ListenerEvent<?> creatingEvent)
    • channelCreating

      public ListenerEvent<?> channelCreating(String poolId)
    • channelFailedToCreate

      public void channelFailedToCreate(String poolId)
    • channelClosed

      public void channelClosed(io.netty.channel.Channel channel)
    • inUseChannelCount

      public int inUseChannelCount(ServerAddress address)
    • idleChannelCount

      public int idleChannelCount(ServerAddress address)
    • prepareToCloseChannels

      public void prepareToCloseChannels()