String sessionCookieNames = SESSION_COOKIE_NAMES.resolveModelAttribute(context, model).asString();
int connectionsPerThread = CONNECTIONS_PER_THREAD.resolveModelAttribute(context, model).asInt();
int problemServerRetry = PROBLEM_SERVER_RETRY.resolveModelAttribute(context, model).asInt();
int maxTime = MAX_REQUEST_TIME.resolveModelAttribute(context, model).asInt();
final LoadBalancingProxyClient lb = new LoadBalancingProxyClient(new ExclusivityChecker() {
@Override
public boolean isExclusivityRequired(HttpServerExchange exchange) {
//we always create a new connection for upgrade requests
return exchange.getRequestHeaders().contains(Headers.UPGRADE);
}