| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public class | |
| public static interface | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final AttachmentKey | |
| private final UndertowClient | |
| private volatile int | connectionsPerThread
The number of connections to create per thread |
| private final AttachmentKey | exclusiveConnectionKey
The attachment key that is used to attach the proxy connection to the exchange. |
| private final ExclusivityChecker | |
| private volatile LoadBalancingProxyClient. | hosts
The hosts list. |
| private final LoadBalancingProxyClient. | |
| private volatile int | |
| private volatile int | problemServerRetry
Time in seconds between retries for problem servers |
| private static final ProxyClient. | |
| private RouteIteratorFactory | |
| private final Map | |
| private final Set | |
| private volatile int | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | LoadBalancingProxyClient(UndertowClient client, ExclusivityChecker exclusivityChecker, LoadBalancingProxyClient.
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized LoadBalancingProxyClient | |
| public synchronized LoadBalancingProxyClient | |
| public synchronized LoadBalancingProxyClient | |
| public synchronized LoadBalancingProxyClient | |
| public synchronized LoadBalancingProxyClient | |
| public synchronized LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | |
| public void | closeCurrentConnections()
Should only be used for tests DO NOT CALL THIS METHOD WHEN REQUESTS ARE IN PROGRESS It is not thread safe so internal state can get messed up. |
| public ProxyClient. | findTarget(HttpServerExchange
The exchange exchange)Implements io. Finds a proxy target for this request, returning null if none can be found. |
| public List | |
| public void | getConnection(ProxyClient.
The exchange exchange, final ProxyCallback<ProxyConnection> The callback callback, long The timeout timeout, TimeUnit Time unit for the timeout timeUnit)Implements io. Gets a proxy connection for the given request. |
| public int | |
| public int | |
| public int | |
| protected Iterator | |
| public synchronized LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | |
| protected LoadBalancingProxyClient. | |
| public LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | setRankedRoutingDelimiter(String rankedRoutingDelimiter)
Configures ranked route delimiter, enabling ranked routing parsing strategy. |
| public LoadBalancingProxyClient | |
| public LoadBalancingProxyClient | |
| public LoadBalancingProxyClient |
| ATTEMPTED_HOSTS | back to summary |
|---|---|
| private static final AttachmentKey<AttachmentList<LoadBalancingProxyClient. | |
| client | back to summary |
|---|---|
| private final UndertowClient client | |
| connectionsPerThread | back to summary |
|---|---|
| private volatile int connectionsPerThread The number of connections to create per thread | |
| exclusiveConnectionKey | back to summary |
|---|---|
| private final AttachmentKey<LoadBalancingProxyClient. The attachment key that is used to attach the proxy connection to the exchange. This cannot be static as otherwise a connection from a different client could be re-used. | |
| exclusivityChecker | back to summary |
|---|---|
| private final ExclusivityChecker exclusivityChecker | |
| hosts | back to summary |
|---|---|
| private volatile LoadBalancingProxyClient. The hosts list. | |
| hostSelector | back to summary |
|---|---|
| private final LoadBalancingProxyClient. | |
| maxQueueSize | back to summary |
|---|---|
| private volatile int maxQueueSize | |
| problemServerRetry | back to summary |
|---|---|
| private volatile int problemServerRetry Time in seconds between retries for problem servers | |
| PROXY_TARGET | back to summary |
|---|---|
| private static final ProxyClient. | |
| routeIteratorFactory | back to summary |
|---|---|
| private RouteIteratorFactory routeIteratorFactory | |
| routes | back to summary |
|---|---|
| private final Map<String, LoadBalancingProxyClient. | |
| sessionCookieNames | back to summary |
|---|---|
| private final Set<String> sessionCookieNames | |
| softMaxConnectionsPerThread | back to summary |
|---|---|
| private volatile int softMaxConnectionsPerThread | |
| ttl | back to summary |
|---|---|
| private volatile int ttl | |
| LoadBalancingProxyClient | back to summary |
|---|---|
| public LoadBalancingProxyClient() | |
| LoadBalancingProxyClient | back to summary |
|---|---|
| public LoadBalancingProxyClient(UndertowClient client) | |
| LoadBalancingProxyClient | back to summary |
|---|---|
| public LoadBalancingProxyClient(ExclusivityChecker client) | |
| LoadBalancingProxyClient | back to summary |
|---|---|
| public LoadBalancingProxyClient(UndertowClient client, ExclusivityChecker exclusivityChecker) | |
| LoadBalancingProxyClient | back to summary |
|---|---|
| public LoadBalancingProxyClient(UndertowClient client, ExclusivityChecker exclusivityChecker, LoadBalancingProxyClient. | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final URI host) | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final URI host, XnioSsl ssl) | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final URI host, String jvmRoute) | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final URI host, String jvmRoute, XnioSsl ssl) | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final URI host, String jvmRoute, XnioSsl ssl, OptionMap options) | |
| addHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient addHost(final InetSocketAddress bindAddress, final URI host, String jvmRoute, XnioSsl ssl, OptionMap options) | |
| addSessionCookieName | back to summary |
|---|---|
| public LoadBalancingProxyClient addSessionCookieName(final String sessionCookieName) | |
| closeCurrentConnections | back to summary |
|---|---|
| public void closeCurrentConnections() Should only be used for tests DO NOT CALL THIS METHOD WHEN REQUESTS ARE IN PROGRESS It is not thread safe so internal state can get messed up. | |
| findTarget | back to summary |
|---|---|
| public ProxyClient. Implements io. Doc from io. Finds a proxy target for this request, returning null if none can be found. If this method returns null it means that there is no backend available to handle this request, and it should proceed as normal.
| |
| getAllTargets | back to summary |
|---|---|
| public List Overrides default io.
| |
| getConnection | back to summary |
|---|---|
| public void getConnection(ProxyClient. Implements io. Doc from io. Gets a proxy connection for the given request.
| |
| getConnectionsPerThread | back to summary |
|---|---|
| public int getConnectionsPerThread() | |
| getMaxQueueSize | back to summary |
|---|---|
| public int getMaxQueueSize() | |
| getProblemServerRetry | back to summary |
|---|---|
| public int getProblemServerRetry() | |
| parseRoutes | back to summary |
|---|---|
| protected Iterator | |
| removeHost | back to summary |
|---|---|
| public synchronized LoadBalancingProxyClient removeHost(final URI uri) | |
| removeSessionCookieName | back to summary |
|---|---|
| public LoadBalancingProxyClient removeSessionCookieName(final String sessionCookieName) | |
| selectHost | back to summary |
|---|---|
| protected LoadBalancingProxyClient. | |
| setConnectionsPerThread | back to summary |
|---|---|
| public LoadBalancingProxyClient setConnectionsPerThread(int connectionsPerThread) | |
| setMaxQueueSize | back to summary |
|---|---|
| public LoadBalancingProxyClient setMaxQueueSize(int maxQueueSize) | |
| setProblemServerRetry | back to summary |
|---|---|
| public LoadBalancingProxyClient setProblemServerRetry(int problemServerRetry) | |
| setRankedRoutingDelimiter | back to summary |
|---|---|
| public LoadBalancingProxyClient setRankedRoutingDelimiter(String rankedRoutingDelimiter) Configures ranked route delimiter, enabling ranked routing parsing strategy. | |
| setRouteParsingStrategy | back to summary |
|---|---|
| public LoadBalancingProxyClient setRouteParsingStrategy(RouteParsingStrategy routeParsingStrategy) | |
| setSoftMaxConnectionsPerThread | back to summary |
|---|---|
| public LoadBalancingProxyClient setSoftMaxConnectionsPerThread(int softMaxConnectionsPerThread) | |
| setTtl | back to summary |
|---|---|
| public LoadBalancingProxyClient setTtl(int ttl) | |
| Modifier and Type | Field and Description |
|---|---|
| private ProxyConnection |
| Access | Constructor and Description |
|---|---|
| private |
| connection | back to summary |
|---|---|
| private ProxyConnection connection | |
| ExclusiveConnectionHolder | back to summary |
|---|---|
| private ExclusiveConnectionHolder() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ProxyConnectionPool | |
| pack-priv final String | |
| pack-priv final XnioSsl | |
| pack-priv final URI |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public int | getMaxCachedConnections()
Implements io. Get the maximum number of cached (idle) connections per thread. |
| public int | getMaxConnections()
Implements io. Get the maximum number of connections per thread. |
| public int | getMaxQueueSize()
Implements io. Get the maximum number of requests which can be queued if there are no connections available. |
| public int | |
| public int | getSMaxConnections()
Implements io. Get number of cached connections above which are closed after the time to live. |
| public long | getTtl()
Implements io. Get the time to live for idle connections. |
| public URI |
| connectionPool | back to summary |
|---|---|
| pack-priv final ProxyConnectionPool connectionPool | |
| jvmRoute | back to summary |
|---|---|
| pack-priv final String jvmRoute | |
| ssl | back to summary |
|---|---|
| pack-priv final XnioSsl ssl | |
| uri | back to summary |
|---|---|
| pack-priv final URI uri | |
| Host | back to summary |
|---|---|
| private Host(String jvmRoute, InetSocketAddress bindAddress, URI uri, XnioSsl ssl, OptionMap options) | |
| closeCurrentConnections | back to summary |
|---|---|
| pack-priv void closeCurrentConnections() | |
| getMaxCachedConnections | back to summary |
|---|---|
| public int getMaxCachedConnections() Implements io. Doc from io. Get the maximum number of cached (idle) connections per thread.
| |
| getMaxConnections | back to summary |
|---|---|
| public int getMaxConnections() Implements io. Doc from io. Get the maximum number of connections per thread.
| |
| getMaxQueueSize | back to summary |
|---|---|
| public int getMaxQueueSize() Implements io. Doc from io. Get the maximum number of requests which can be queued if there are no connections available.
| |
| getProblemServerRetry | back to summary |
|---|---|
| public int getProblemServerRetry() Implements io.
| |
| getSMaxConnections | back to summary |
|---|---|
| public int getSMaxConnections() Implements io. Doc from io. Get number of cached connections above which are closed after the time to live.
| |
| getTtl | back to summary |
|---|---|
| public long getTtl() Implements io. Doc from io. Get the time to live for idle connections.
| |
| getUri | back to summary |
|---|---|
| public URI getUri() | |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| selectHost | back to summary |
|---|---|
| public int selectHost(LoadBalancingProxyClient. | |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | selectHost(LoadBalancingProxyClient.
Implements io.
|
| currentHost | back to summary |
|---|---|
| private final AtomicInteger currentHost | |
| RoundRobinHostSelector | back to summary |
|---|---|
| pack-priv RoundRobinHostSelector() | |
| selectHost | back to summary |
|---|---|
| public int selectHost(LoadBalancingProxyClient. Implements io.
| |