public class LoadBalancingProxyClient extends Object implements ProxyClient
Modifier and Type | Class and Description |
---|---|
protected class |
LoadBalancingProxyClient.StickeySessionData |
Constructor and Description |
---|
LoadBalancingProxyClient() |
LoadBalancingProxyClient(UndertowClient client) |
Modifier and Type | Method and Description |
---|---|
LoadBalancingProxyClient |
addHost(URI host) |
LoadBalancingProxyClient |
addSessionCookieName(String sessionCookieName) |
protected io.undertow.server.handlers.proxy.Host |
findStickyHost(HttpServerExchange exchange) |
void |
getConnection(HttpServerExchange exchange,
ProxyCallback<ProxyConnection> callback,
long timeout,
TimeUnit timeUnit) |
int |
getConnectionsPerThread() |
int |
getProblemServerRetry() |
int |
getStickeySessionLifetime() |
LoadBalancingProxyClient |
removeHost(URI uri) |
LoadBalancingProxyClient |
removeSessionCookieName(String sessionCookieName) |
protected io.undertow.server.handlers.proxy.Host |
selectHost(HttpServerExchange exchange) |
LoadBalancingProxyClient |
setConnectionsPerThread(int connectionsPerThread) |
LoadBalancingProxyClient |
setProblemServerRetry(int problemServerRetry) |
LoadBalancingProxyClient |
setStickeySessionLifetime(int stickeySessionLifetime) |
public LoadBalancingProxyClient()
public LoadBalancingProxyClient(UndertowClient client)
public LoadBalancingProxyClient addSessionCookieName(String sessionCookieName)
public LoadBalancingProxyClient removeSessionCookieName(String sessionCookieName)
public LoadBalancingProxyClient setProblemServerRetry(int problemServerRetry)
public int getProblemServerRetry()
public int getStickeySessionLifetime()
public LoadBalancingProxyClient setStickeySessionLifetime(int stickeySessionLifetime)
public int getConnectionsPerThread()
public LoadBalancingProxyClient setConnectionsPerThread(int connectionsPerThread)
public LoadBalancingProxyClient addHost(URI host)
public LoadBalancingProxyClient removeHost(URI uri)
public void getConnection(HttpServerExchange exchange, ProxyCallback<ProxyConnection> callback, long timeout, TimeUnit timeUnit)
getConnection
in interface ProxyClient
protected io.undertow.server.handlers.proxy.Host selectHost(HttpServerExchange exchange)
protected io.undertow.server.handlers.proxy.Host findStickyHost(HttpServerExchange exchange)
Copyright © 2013 JBoss by Red Hat. All rights reserved.