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 TypeMethodDescriptionint
Get the maximum number of cached (idle) connections per thread.int
Get the maximum number of connections per thread.int
Get the maximum number of requests which can be queued if there are no connections available.int
int
Get number of cached connections above which are closed after the time to live.long
getTtl()
Get the time to live for idle connections.getUri()
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 Details
-
getProblemServerRetry
public int getProblemServerRetry()- Specified by:
getProblemServerRetry
in interfaceConnectionPoolManager
- Returns:
- The amount of time that we should wait before re-testing a problem server
-
getMaxConnections
public int getMaxConnections()Description copied from interface:ProxyConnectionPoolConfig
Get the maximum number of connections per thread.- Specified by:
getMaxConnections
in interfaceProxyConnectionPoolConfig
- Returns:
-
getMaxCachedConnections
public int getMaxCachedConnections()Description copied from interface:ProxyConnectionPoolConfig
Get the maximum number of cached (idle) connections per thread.- Specified by:
getMaxCachedConnections
in interfaceProxyConnectionPoolConfig
- Returns:
-
getSMaxConnections
public int getSMaxConnections()Description copied from interface:ProxyConnectionPoolConfig
Get number of cached connections above which are closed after the time to live.- Specified by:
getSMaxConnections
in interfaceProxyConnectionPoolConfig
- Returns:
-
getTtl
public long getTtl()Description copied from interface:ProxyConnectionPoolConfig
Get the time to live for idle connections.- Specified by:
getTtl
in interfaceProxyConnectionPoolConfig
- Returns:
-
getMaxQueueSize
public int getMaxQueueSize()Description copied from interface:ProxyConnectionPoolConfig
Get the maximum number of requests which can be queued if there are no connections available.- Specified by:
getMaxQueueSize
in interfaceProxyConnectionPoolConfig
- Returns:
-
getUri
-