| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ModClusterContainer | |
| private final AttachmentKey | exclusiveConnectionKey
The attachment key that is used to attach the proxy connection to the exchange. |
| private final ExclusivityChecker |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public ProxyClient. | findTarget(HttpServerExchange
The exchange exchange)Implements io. Finds a proxy target for this request, returning null if none can be found. |
| public void | getConnection(final ProxyClient.
The exchange exchange, final ProxyCallback<ProxyConnection> The callback callback, final long The timeout timeout, final TimeUnit Time unit for the timeout timeUnit)Implements io. Gets a proxy connection for the given request. |
| container | back to summary |
|---|---|
| private final ModClusterContainer container | |
| exclusiveConnectionKey | back to summary |
|---|---|
| private final AttachmentKey<ModClusterProxyClient. 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 | |
| ModClusterProxyClient | back to summary |
|---|---|
| protected ModClusterProxyClient(ExclusivityChecker exclusivityChecker, ModClusterContainer container) | |
| 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.
| |
| getConnection | back to summary |
|---|---|
| public void getConnection(final ProxyClient. Implements io. Doc from io. Gets a proxy connection for the given request.
| |
| 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() | |