com.netflix.astyanax.connectionpool.impl
Class RoundRobinConnectionPoolImpl<CL>
java.lang.Object
com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool<CL>
com.netflix.astyanax.connectionpool.impl.RoundRobinConnectionPoolImpl<CL>
- Type Parameters:
CL
-
- All Implemented Interfaces:
- ConnectionPool<CL>, SimpleHostConnectionPool.Listener<CL>
public class RoundRobinConnectionPoolImpl<CL>
- extends AbstractHostPartitionConnectionPool<CL>
Connection pool implementation using simple round robin.
- Author:
- elandau
Methods inherited from class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool |
addHost, executeWithFailover, getActivePools, getHostPool, hasHost, isHostUp, newHostConnectionPool, onHostDown, onHostUp, rebuildPartitions, removeHost, setHosts, shutdown, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundRobinConnectionPoolImpl
public RoundRobinConnectionPoolImpl(ConnectionPoolConfiguration config,
ConnectionFactory<CL> factory,
ConnectionPoolMonitor monitor)
newExecuteWithFailover
public <R> ExecuteWithFailover<CL,R> newExecuteWithFailover(Operation<CL,R> operation)
throws ConnectionException
- Description copied from class:
AbstractHostPartitionConnectionPool
- Return a new failover context. The context captures the connection pool state and implements
the necessary failover logic.
- Specified by:
newExecuteWithFailover
in class AbstractHostPartitionConnectionPool<CL>
- Returns:
-
- Throws:
ConnectionException
Copyright © 2012. All Rights Reserved.