ConnectionPoolErrorHandler
, ConnectionPoolManager
, ProxyConnectionPoolConfig
public final class LoadBalancingProxyClient.Host extends ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler implements ConnectionPoolManager
ConnectionPoolErrorHandler.CountingErrorHandler, ConnectionPoolErrorHandler.SimpleConnectionPoolErrorHandler
Modifier and Type | Method | Description |
---|---|---|
int |
getMaxCachedConnections() |
Get the maximum number of cached (idle) connections per thread.
|
int |
getMaxConnections() |
Get the maximum number of connections per thread.
|
int |
getMaxQueueSize() |
Get the maximum number of requests which can be queued if there are no connections available.
|
int |
getProblemServerRetry() |
|
int |
getSMaxConnections() |
Get number of cached connections above which are closed after the time to live.
|
long |
getTtl() |
Get the time to live for idle connections.
|
java.net.URI |
getUri() |
clearError, handleError, isAvailable
clearError, handleError, isAvailable
public int getProblemServerRetry()
getProblemServerRetry
in interface ConnectionPoolManager
public int getMaxConnections()
ProxyConnectionPoolConfig
getMaxConnections
in interface ProxyConnectionPoolConfig
public int getMaxCachedConnections()
ProxyConnectionPoolConfig
getMaxCachedConnections
in interface ProxyConnectionPoolConfig
public int getSMaxConnections()
ProxyConnectionPoolConfig
getSMaxConnections
in interface ProxyConnectionPoolConfig
public long getTtl()
ProxyConnectionPoolConfig
getTtl
in interface ProxyConnectionPoolConfig
public int getMaxQueueSize()
ProxyConnectionPoolConfig
getMaxQueueSize
in interface ProxyConnectionPoolConfig
public java.net.URI getUri()
Copyright © 2018. All rights reserved.