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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxCachedConnections()Get the maximum number of cached (idle) connections per thread.intgetMaxConnections()Get the maximum number of connections per thread.intgetMaxQueueSize()Get the maximum number of requests which can be queued if there are no connections available.intgetProblemServerRetry()intgetSMaxConnections()Get number of cached connections above which are closed after the time to live.longgetTtl()Get the time to live for idle connections.URIgetUri()-
Methods inherited from class io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
clearError, handleError, isAvailable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.undertow.server.handlers.proxy.ConnectionPoolErrorHandler
clearError, handleError, isAvailable
-
-
-
-
Method Detail
-
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
public URI getUri()
-
-