From 5222417ad121a954d33d3efd825ab21e4127535c Mon Sep 17 00:00:00 2001 From: Gavin Bunney <409207+gavinbunney@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:18:01 -0700 Subject: [PATCH] Allow subclass access to properties (#1658) --- .../PerServerConnectionPool.java | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/PerServerConnectionPool.java b/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/PerServerConnectionPool.java index 2d3478b147..0397978803 100644 --- a/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/PerServerConnectionPool.java +++ b/zuul-core/src/main/java/com/netflix/zuul/netty/connectionpool/PerServerConnectionPool.java @@ -49,36 +49,36 @@ public class PerServerConnectionPool implements IConnectionPool { private static final Logger LOG = LoggerFactory.getLogger(PerServerConnectionPool.class); public static final AttributeKey CHANNEL_ATTR = AttributeKey.newInstance("_connection_pool"); - private final ConcurrentHashMap> connectionsPerEventLoop = + protected final ConcurrentHashMap> connectionsPerEventLoop = new ConcurrentHashMap<>(); protected final PooledConnectionFactory pooledConnectionFactory; - private final DiscoveryResult server; - private final SocketAddress serverAddr; - private final NettyClientConnectionFactory connectionFactory; - private final ConnectionPoolConfig config; - private final IClientConfig niwsClientConfig; - - private final Counter createNewConnCounter; - private final Counter createConnSucceededCounter; - private final Counter createConnFailedCounter; - - private final Counter requestConnCounter; - private final Counter reuseConnCounter; - private final Counter connTakenFromPoolIsNotOpen; - private final Counter maxConnsPerHostExceededCounter; - private final Counter closeAboveHighWaterMarkCounter; - private final Timer connEstablishTimer; - private final AtomicInteger connsInPool; - private final AtomicInteger connsInUse; + protected final DiscoveryResult server; + protected final SocketAddress serverAddr; + protected final NettyClientConnectionFactory connectionFactory; + protected final ConnectionPoolConfig config; + protected final IClientConfig niwsClientConfig; + + protected final Counter createNewConnCounter; + protected final Counter createConnSucceededCounter; + protected final Counter createConnFailedCounter; + + protected final Counter requestConnCounter; + protected final Counter reuseConnCounter; + protected final Counter connTakenFromPoolIsNotOpen; + protected final Counter maxConnsPerHostExceededCounter; + protected final Counter closeAboveHighWaterMarkCounter; + protected final Timer connEstablishTimer; + protected final AtomicInteger connsInPool; + protected final AtomicInteger connsInUse; /** * This is the count of connections currently in progress of being established. * They will only be added to connsInUse _after_ establishment has completed. */ - private final AtomicInteger connCreationsInProgress; + protected final AtomicInteger connCreationsInProgress; - private volatile boolean draining; + protected volatile boolean draining; public PerServerConnectionPool( DiscoveryResult server,