|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool<CL>
com.netflix.astyanax.connectionpool.impl.TokenAwareConnectionPoolImpl<CL>
CL - public class TokenAwareConnectionPoolImpl<CL>
Connection pool that partitions connections by the hosts which own the token being operated on. When a token is not available or an operation is known to span multiple tokens (such as a batch mutate or an index query) host pools are picked using round robin. This implementation takes an optimistic approach which is optimized for a well functioning ring with all nodes up and keeps downed hosts in the internal data structures.
| Field Summary |
|---|
| Fields inherited from class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool |
|---|
config, factory, hosts, monitor, partitioner, topology |
| Constructor Summary | |
|---|---|
TokenAwareConnectionPoolImpl(ConnectionPoolConfiguration configuration,
ConnectionFactory<CL> factory,
ConnectionPoolMonitor monitor)
|
|
| Method Summary | ||
|---|---|---|
|
newExecuteWithFailover(Operation<CL,R> op)
Return a new failover context. |
|
| Methods inherited from class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool |
|---|
addHost, executeWithFailover, getActivePools, getHostPool, getPartitioner, getPools, getTopology, 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 |
| Constructor Detail |
|---|
public TokenAwareConnectionPoolImpl(ConnectionPoolConfiguration configuration,
ConnectionFactory<CL> factory,
ConnectionPoolMonitor monitor)
| Method Detail |
|---|
public <R> ExecuteWithFailover<CL,R> newExecuteWithFailover(Operation<CL,R> op)
throws ConnectionException
AbstractHostPartitionConnectionPool
newExecuteWithFailover in class AbstractHostPartitionConnectionPool<CL>ConnectionException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||