public static final class LoadBalancingStrategy.NONE extends Object implements LoadBalancingHandler
| Modifier and Type | Method and Description |
|---|---|
TargetHost |
calculateTargetHost(Exchange exchange,
List<TargetHost> availableHosts,
List<TargetHost> configuredHosts)
Calculate the target host, given the list of available hosts and the current exchange.
|
void |
handleResponse(Exchange exchange,
TargetHost targetHost)
Updates any internal data based on the response and optionally updates the response.
|
public TargetHost calculateTargetHost(Exchange exchange, List<TargetHost> availableHosts, List<TargetHost> configuredHosts)
LoadBalancingHandlerTargetHost is detected as unavailable after it is
selected.
To store data in between invocations, use the
Exchange.setProperty(ExchangeProperty, Object) method.calculateTargetHost in interface LoadBalancingHandlerexchange - The exchange.availableHosts - The list of available hosts for a Site. This list cannot be modified by implementations.configuredHosts - The list of configured hosts for a Site. This can be used to determine which hosts for the
Site are available and perform any necessary cleanup for this case. This list cannot be
modified by implementations.public void handleResponse(Exchange exchange, TargetHost targetHost)
LoadBalancingHandlerhandleResponse in interface LoadBalancingHandlerexchange - The exchange containing the response.targetHost - The target host used for the request.Copyright 2023 Ping Identity Corp. All rights reserved.