CL - public class RoundRobinConnectionPoolImpl<CL> extends AbstractHostPartitionConnectionPool<CL>
HostConnectionPool(s) maintained using a Topology that reflects the given
partitioned set of pools. Note that the impl uses the pinned host on the operation if it finds one. If there is none, then it uses
all the host connection pools in the topology.RoundRobinExecuteWithFailover} for more details on how failover works with round robin connections.,
Topology} for details on where the collection of {@link HostConnectionPool}(s) are maintained.,
AbstractHostPartitionConnectionPool} for the base impl of {@link ConnectionPool}config, factory, hosts, monitor, partitioner, topology| Constructor and Description |
|---|
RoundRobinConnectionPoolImpl(ConnectionPoolConfiguration config,
ConnectionFactory<CL> factory,
ConnectionPoolMonitor monitor) |
| Modifier and Type | Method and Description |
|---|---|
<R> ExecuteWithFailover<CL,R> |
newExecuteWithFailover(Operation<CL,R> operation)
Return a new failover context.
|
addHost, executeWithFailover, getActivePools, getHostPool, getPartitioner, getPools, getTopology, hasHost, isHostUp, newHostConnectionPool, onHostDown, onHostUp, rebuildPartitions, removeHost, setHosts, shutdown, startpublic RoundRobinConnectionPoolImpl(ConnectionPoolConfiguration config, ConnectionFactory<CL> factory, ConnectionPoolMonitor monitor)
public <R> ExecuteWithFailover<CL,R> newExecuteWithFailover(Operation<CL,R> operation) throws ConnectionException
AbstractHostPartitionConnectionPoolnewExecuteWithFailover in class AbstractHostPartitionConnectionPool<CL>ConnectionException