Class PerServerConnectionPool

java.lang.Object
com.netflix.zuul.netty.connectionpool.PerServerConnectionPool
All Implemented Interfaces:
IConnectionPool

public class PerServerConnectionPool extends Object implements IConnectionPool
User: [email protected] Date: 7/8/16 Time: 1:09 PM
  • Field Details

    • CHANNEL_ATTR

      public static final io.netty.util.AttributeKey<IConnectionPool> CHANNEL_ATTR
    • connectionsPerEventLoop

      protected final ConcurrentHashMap<io.netty.channel.EventLoop,Deque<PooledConnection>> connectionsPerEventLoop
    • pooledConnectionFactory

      protected final PooledConnectionFactory pooledConnectionFactory
    • server

      protected final com.netflix.zuul.discovery.DiscoveryResult server
    • serverAddr

      protected final SocketAddress serverAddr
    • connectionFactory

      protected final NettyClientConnectionFactory connectionFactory
    • config

      protected final ConnectionPoolConfig config
    • niwsClientConfig

      protected final com.netflix.client.config.IClientConfig niwsClientConfig
    • createNewConnCounter

      protected final com.netflix.spectator.api.Counter createNewConnCounter
    • createConnSucceededCounter

      protected final com.netflix.spectator.api.Counter createConnSucceededCounter
    • createConnFailedCounter

      protected final com.netflix.spectator.api.Counter createConnFailedCounter
    • requestConnCounter

      protected final com.netflix.spectator.api.Counter requestConnCounter
    • reuseConnCounter

      protected final com.netflix.spectator.api.Counter reuseConnCounter
    • connTakenFromPoolIsNotOpen

      protected final com.netflix.spectator.api.Counter connTakenFromPoolIsNotOpen
    • maxConnsPerHostExceededCounter

      protected final com.netflix.spectator.api.Counter maxConnsPerHostExceededCounter
    • closeAboveHighWaterMarkCounter

      protected final com.netflix.spectator.api.Counter closeAboveHighWaterMarkCounter
    • connEstablishTimer

      protected final com.netflix.spectator.api.Timer connEstablishTimer
    • connsInPool

      protected final AtomicInteger connsInPool
    • connsInUse

      protected final AtomicInteger connsInUse
    • connCreationsInProgress

      protected final AtomicInteger connCreationsInProgress
      This is the count of connections currently in progress of being established. They will only be added to connsInUse _after_ establishment has completed.
    • draining

      protected volatile boolean draining
  • Constructor Details

    • PerServerConnectionPool

      public PerServerConnectionPool(com.netflix.zuul.discovery.DiscoveryResult server, SocketAddress serverAddr, NettyClientConnectionFactory connectionFactory, PooledConnectionFactory pooledConnectionFactory, ConnectionPoolConfig config, com.netflix.client.config.IClientConfig niwsClientConfig, com.netflix.spectator.api.Counter createNewConnCounter, com.netflix.spectator.api.Counter createConnSucceededCounter, com.netflix.spectator.api.Counter createConnFailedCounter, com.netflix.spectator.api.Counter requestConnCounter, com.netflix.spectator.api.Counter reuseConnCounter, com.netflix.spectator.api.Counter connTakenFromPoolIsNotOpen, com.netflix.spectator.api.Counter closeAboveHighWaterMarkCounter, com.netflix.spectator.api.Counter maxConnsPerHostExceededCounter, com.netflix.spectator.api.Timer connEstablishTimer, AtomicInteger connsInPool, AtomicInteger connsInUse)
  • Method Details