Class LoadBalancingProxyClient.Host
java.lang.Object
io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
io.undertow.server.handlers.proxy.LoadBalancingProxyClient.Host
- All Implemented Interfaces:
ConnectionPoolErrorHandler,ConnectionPoolManager,ProxyConnectionPoolConfig
- Enclosing class:
- LoadBalancingProxyClient
public final class LoadBalancingProxyClient.Host
extends ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
implements ConnectionPoolManager
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler
ConnectionPoolErrorHandler.CountingErrorHandler, ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler -
Method Summary
Modifier and TypeMethodDescriptionintGet the maximum number of cached (idle) connections per thread.intGet the maximum number of connections per thread.intGet the maximum number of requests which can be queued if there are no connections available.intintGet number of cached connections above which are closed after the time to live.longgetTtl()Get the time to live for idle connections.getUri()Methods inherited from class io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
clearError, handleError, isAvailableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler
clearError, handleError, isAvailable
-
Method Details
-
getProblemServerRetry
public int getProblemServerRetry()- Specified by:
getProblemServerRetryin interfaceConnectionPoolManager- Returns:
- The amount of time that we should wait before re-testing a problem server
-
getMaxConnections
public int getMaxConnections()Description copied from interface:ProxyConnectionPoolConfigGet the maximum number of connections per thread.- Specified by:
getMaxConnectionsin interfaceProxyConnectionPoolConfig- Returns:
-
getMaxCachedConnections
public int getMaxCachedConnections()Description copied from interface:ProxyConnectionPoolConfigGet the maximum number of cached (idle) connections per thread.- Specified by:
getMaxCachedConnectionsin interfaceProxyConnectionPoolConfig- Returns:
-
getSMaxConnections
public int getSMaxConnections()Description copied from interface:ProxyConnectionPoolConfigGet number of cached connections above which are closed after the time to live.- Specified by:
getSMaxConnectionsin interfaceProxyConnectionPoolConfig- Returns:
-
getTtl
public long getTtl()Description copied from interface:ProxyConnectionPoolConfigGet the time to live for idle connections.- Specified by:
getTtlin interfaceProxyConnectionPoolConfig- Returns:
-
getMaxQueueSize
public int getMaxQueueSize()Description copied from interface:ProxyConnectionPoolConfigGet the maximum number of requests which can be queued if there are no connections available.- Specified by:
getMaxQueueSizein interfaceProxyConnectionPoolConfig- Returns:
-
getUri
-