| Modifier and Type | Class and Description |
|---|---|
| public static enum | |
| private static class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final InetSocketAddress | |
| private final UndertowClient | |
| private volatile boolean | closed
Set to true when the connection pool is closed. |
| private final ConnectionPoolManager | |
| private final int | coreCachedConnections
The minimum number of connections that this proxy connection pool will try and keep established. |
| private final ConcurrentMap | |
| private final int | maxCachedConnections
The maximum number of connections that will be kept alive once they are idle. |
| private final int | maxConnections
The maximum number of connections that can be established to the target |
| private final AtomicInteger | openConnections
The total number of open connections, across all threads |
| private final OptionMap | |
| private final AtomicLong | read
read bytes for all closed connections |
| private final AtomicLong | requestCount
request count for all closed connections |
| private final XnioSsl | |
| private final long | timeToLive
The timeout for idle connections. |
| private final URI | |
| private final AtomicLong | written
written bytes for all closed connections |
| Access | Constructor and Description |
|---|---|
| public | ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, URI uri, UndertowClient client, OptionMap options)
|
| public | ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, InetSocketAddress bindAddress, URI uri, UndertowClient client, OptionMap options)
|
| public | ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, URI uri, XnioSsl ssl, UndertowClient client, OptionMap options)
|
| public | ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, InetSocketAddress bindAddress, URI uri, XnioSsl ssl, UndertowClient client, OptionMap options)
|
| Modifier and Type | Method and Description |
|---|---|
| public ProxyConnectionPool. | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| pack-priv void | |
| public void | connect(ProxyClient.
- Is connection for the exclusive use of one client? exclusive)
|
| private void | connectionReady(final ProxyConnectionPool.
|
| public InetSocketAddress | |
| public ClientStatistics | |
| private ProxyConnectionPool. | |
| public int | |
| public URI | |
| private void | handleClosedConnection(ProxyConnectionPool.
|
| private void | openConnection(final HttpServerExchange exchange, final ProxyCallback<ProxyConnection> callback, final ProxyConnectionPool.
|
| private void | |
| private void | returnConnection(final ProxyConnectionPool.
The client connection holder connectionHolderCalled when the IO thread has completed a successful request |
| private void | scheduleFailedHostRetry(final HttpServerExchange
The server exchange exchange)If a host fails we periodically retry |
| private void | timeoutConnections(final long
the current time currentTime, final ProxyConnectionPool.the local host thread data dataTimeout idle connections which are above the soft max cached connections limit. |
| bindAddress | back to summary |
|---|---|
| private final InetSocketAddress bindAddress | |
| client | back to summary |
|---|---|
| private final UndertowClient client | |
| closed | back to summary |
|---|---|
| private volatile boolean closed Set to true when the connection pool is closed. | |
| connectionPoolManager | back to summary |
|---|---|
| private final ConnectionPoolManager connectionPoolManager | |
| coreCachedConnections | back to summary |
|---|---|
| private final int coreCachedConnections The minimum number of connections that this proxy connection pool will try and keep established. Once the pool is down to this number of connections no more connections will be timed out. Note This value is per IO thread, so to get the actual value this must be multiplied by the number of IO threads | |
| hostThreadData | back to summary |
|---|---|
| private final ConcurrentMap<XnioIoThread, ProxyConnectionPool. | |
| maxCachedConnections | back to summary |
|---|---|
| private final int maxCachedConnections The maximum number of connections that will be kept alive once they are idle. If a time to live is set
these connections may be timed out, depending on the value of Note This value is per IO thread, so to get the actual value this must be multiplied by the number of IO threads | |
| maxConnections | back to summary |
|---|---|
| private final int maxConnections The maximum number of connections that can be established to the target | |
| openConnections | back to summary |
|---|---|
| private final AtomicInteger openConnections The total number of open connections, across all threads | |
| options | back to summary |
|---|---|
| private final OptionMap options | |
| read | back to summary |
|---|---|
| private final AtomicLong read read bytes for all closed connections | |
| requestCount | back to summary |
|---|---|
| private final AtomicLong requestCount request count for all closed connections | |
| ssl | back to summary |
|---|---|
| private final XnioSsl ssl | |
| timeToLive | back to summary |
|---|---|
| private final long timeToLive The timeout for idle connections. Note that if | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| written | back to summary |
|---|---|
| private final AtomicLong written written bytes for all closed connections | |
| ProxyConnectionPool | back to summary |
|---|---|
| public ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, URI uri, UndertowClient client, OptionMap options) | |
| ProxyConnectionPool | back to summary |
|---|---|
| public ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, InetSocketAddress bindAddress, URI uri, UndertowClient client, OptionMap options) | |
| ProxyConnectionPool | back to summary |
|---|---|
| public ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, URI uri, XnioSsl ssl, UndertowClient client, OptionMap options) | |
| ProxyConnectionPool | back to summary |
|---|---|
| public ProxyConnectionPool(ConnectionPoolManager connectionPoolManager, InetSocketAddress bindAddress, URI uri, XnioSsl ssl, UndertowClient client, OptionMap options) | |
| available | back to summary |
|---|---|
| public ProxyConnectionPool. | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in | |
| closeCurrentConnections | back to summary |
|---|---|
| pack-priv void closeCurrentConnections() Should only be used for tests. | |
| connect | back to summary |
|---|---|
public void connect(ProxyClient.
| |
| connectionReady | back to summary |
|---|---|
| private void connectionReady(final ProxyConnectionPool. | |
| getBindAddress | back to summary |
|---|---|
| public InetSocketAddress getBindAddress() | |
| getClientStatistics | back to summary |
|---|---|
| public ClientStatistics getClientStatistics() | |
| getData | back to summary |
|---|---|
| private ProxyConnectionPool. Gets the host data for this thread
| |
| getOpenConnections | back to summary |
|---|---|
public int getOpenConnections()
| |
| getUri | back to summary |
|---|---|
| public URI getUri() | |
| handleClosedConnection | back to summary |
|---|---|
| private void handleClosedConnection(ProxyConnectionPool. | |
| openConnection | back to summary |
|---|---|
| private void openConnection(final HttpServerExchange exchange, final ProxyCallback<ProxyConnection> callback, final ProxyConnectionPool. | |
| redistributeQueued | back to summary |
|---|---|
| private void redistributeQueued(ProxyConnectionPool. | |
| returnConnection | back to summary |
|---|---|
| private void returnConnection(final ProxyConnectionPool. Called when the IO thread has completed a successful request
| |
| scheduleFailedHostRetry | back to summary |
|---|---|
| private void scheduleFailedHostRetry(final HttpServerExchange exchange) If a host fails we periodically retry
| |
| timeoutConnections | back to summary |
|---|---|
| private void timeoutConnections(final long currentTime, final ProxyConnectionPool. Timeout idle connections which are above the soft max cached connections limit.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ProxyConnectionPool. | AVAILABLE
The host is read to accept requests |
| public static final ProxyConnectionPool. | CLOSED
The host is closed. |
| public static final ProxyConnectionPool. | DRAIN
The host is stopped. |
| public static final ProxyConnectionPool. | FULL
All connections are in use, connections will be queued |
| public static final ProxyConnectionPool. | FULL_QUEUE
All connections are in use and the queue is full. |
| public static final ProxyConnectionPool. | PROBLEM
The host is probably down, only try as a last resort |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ProxyConnectionPool. | |
| public static ProxyConnectionPool. |
| AVAILABLE | back to summary |
|---|---|
| public static final ProxyConnectionPool. The host is read to accept requests | |
| CLOSED | back to summary |
|---|---|
| public static final ProxyConnectionPool. The host is closed. connections will always fail | |
| DRAIN | back to summary |
|---|---|
| public static final ProxyConnectionPool. The host is stopped. No request should be forwarded that are not tied to this node via sticky sessions | |
| FULL | back to summary |
|---|---|
| public static final ProxyConnectionPool. All connections are in use, connections will be queued | |
| FULL_QUEUE | back to summary |
|---|---|
| public static final ProxyConnectionPool. All connections are in use and the queue is full. Requests will be rejected. | |
| PROBLEM | back to summary |
|---|---|
| public static final ProxyConnectionPool. The host is probably down, only try as a last resort | |
| AvailabilityType | back to summary |
|---|---|
| private AvailabilityType() | |
| valueOf | back to summary |
|---|---|
| public static ProxyConnectionPool. | |
| values | back to summary |
|---|---|
| public static ProxyConnectionPool. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ProxyCallback | |
| pack-priv boolean | |
| pack-priv final HttpServerExchange | |
| pack-priv final long | |
| pack-priv final ProxyClient. | |
| pack-priv XnioExecutor. |
| Access | Constructor and Description |
|---|---|
| private | CallbackHolder(ProxyClient.
|
| Modifier and Type | Method and Description |
|---|---|
| private ProxyCallback | |
| private HttpServerExchange | |
| private long | |
| public ProxyClient. | |
| private XnioExecutor. | |
| private boolean | |
| public void | |
| private void |
| callback | back to summary |
|---|---|
| pack-priv final ProxyCallback<ProxyConnection> callback | |
| cancelled | back to summary |
|---|---|
| pack-priv boolean cancelled | |
| exchange | back to summary |
|---|---|
| pack-priv final HttpServerExchange exchange | |
| expireTime | back to summary |
|---|---|
| pack-priv final long expireTime | |
| proxyTarget | back to summary |
|---|---|
| pack-priv final ProxyClient. | |
| timeoutKey | back to summary |
|---|---|
| pack-priv XnioExecutor. | |
| CallbackHolder | back to summary |
|---|---|
| private CallbackHolder(ProxyClient. | |
| getCallback | back to summary |
|---|---|
| private ProxyCallback | |
| getExchange | back to summary |
|---|---|
| private HttpServerExchange getExchange() | |
| getExpireTime | back to summary |
|---|---|
| private long getExpireTime() | |
| getProxyTarget | back to summary |
|---|---|
| public ProxyClient. | |
| getTimeoutKey | back to summary |
|---|---|
| private XnioExecutor. | |
| isCancelled | back to summary |
|---|---|
| private boolean isCancelled() | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| setTimeoutKey | back to summary |
|---|---|
| private void setTimeoutKey(XnioExecutor. | |
| Modifier and Type | Field and Description |
|---|---|
| private final ClientConnection | |
| private long |
| Access | Constructor and Description |
|---|---|
| private |
| clientConnection | back to summary |
|---|---|
| private final ClientConnection clientConnection | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| ConnectionHolder | back to summary |
|---|---|
| private ConnectionHolder(ClientConnection clientConnection) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Deque | |
| pack-priv final Deque | |
| pack-priv int | |
| pack-priv long | |
| pack-priv XnioExecutor. | |
| pack-priv final Runnable |
| Access | Constructor and Description |
|---|---|
| private |
| availableConnections | back to summary |
|---|---|
| pack-priv final Deque<ProxyConnectionPool. | |
| awaitingConnections | back to summary |
|---|---|
| pack-priv final Deque<ProxyConnectionPool. | |
| connections | back to summary |
|---|---|
| pack-priv int connections | |
| nextTimeout | back to summary |
|---|---|
| pack-priv long nextTimeout | |
| timeoutKey | back to summary |
|---|---|
| pack-priv XnioExecutor. | |
| timeoutTask | back to summary |
|---|---|
| pack-priv final Runnable timeoutTask | |
| HostThreadData | back to summary |
|---|---|
| private HostThreadData() | |