public class

TokenAwareConnectionPoolImpl

extends AbstractHostPartitionConnectionPool<CL>
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool<CL>
     ↳ com.netflix.astyanax.connectionpool.impl.TokenAwareConnectionPoolImpl<CL>

Class Overview

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.

Summary

[Expand]
Inherited Fields
From class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool
Public Constructors
TokenAwareConnectionPoolImpl(ConnectionPoolConfiguration configuration, ConnectionFactory<CL> factory, ConnectionPoolMonitor monitor)
Public Methods
<R> ExecuteWithFailover<CL, R> newExecuteWithFailover(Operation<CL, R> op)
Return a new failover context.
[Expand]
Inherited Methods
From class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool
From class java.lang.Object
From interface com.netflix.astyanax.connectionpool.ConnectionPool
From interface com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.Listener

Public Constructors

public TokenAwareConnectionPoolImpl (ConnectionPoolConfiguration configuration, ConnectionFactory<CL> factory, ConnectionPoolMonitor monitor)

Public Methods

public ExecuteWithFailover<CL, R> newExecuteWithFailover (Operation<CL, R> op)

Return a new failover context. The context captures the connection pool state and implements the necessary failover logic.@return