CL - R - public class LeastOutstandingExecuteWithFailover<CL,R> extends AbstractExecuteWithFailoverImpl<CL,R>
HostConnectionPool with the max idle connections when borrowing a connection from the pool.
This execute with failover impl is used within the TokenAwareConnectionPoolImpl class depending on the configured
HostSelectorStrategyTokenAwareConnectionPoolImpl#executeWithFailover(Operation, com.netflix.astyanax.retry.RetryPolicy)} for details on where this class is referenced| Modifier and Type | Field and Description |
|---|---|
protected HostConnectionPool<CL> |
pool |
protected java.util.List<HostConnectionPool<CL>> |
pools |
protected int |
waitDelta |
protected int |
waitMultiplier |
config, connection| Constructor and Description |
|---|
LeastOutstandingExecuteWithFailover(ConnectionPoolConfiguration config,
ConnectionPoolMonitor monitor,
java.util.List<HostConnectionPool<CL>> pools) |
| Modifier and Type | Method and Description |
|---|---|
Connection<CL> |
borrowConnection(Operation<CL,R> operation) |
boolean |
canRetry() |
HostConnectionPool<CL> |
getCurrentHostConnectionPool() |
getCurrentHost, releaseConnection, tryOperationprotected HostConnectionPool<CL> pool
protected final java.util.List<HostConnectionPool<CL>> pools
protected int waitDelta
protected int waitMultiplier
public LeastOutstandingExecuteWithFailover(ConnectionPoolConfiguration config, ConnectionPoolMonitor monitor, java.util.List<HostConnectionPool<CL>> pools) throws ConnectionException
ConnectionExceptionpublic boolean canRetry()
canRetry in class AbstractExecuteWithFailoverImpl<CL,R>public HostConnectionPool<CL> getCurrentHostConnectionPool()
getCurrentHostConnectionPool in class AbstractExecuteWithFailoverImpl<CL,R>HostConnectionPoolpublic Connection<CL> borrowConnection(Operation<CL,R> operation) throws ConnectionException
borrowConnection in class AbstractExecuteWithFailoverImpl<CL,R>ConnectionConnectionException