public class

BagOfConnectionsConnectionPoolImpl

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

Class Overview

Connection pool which puts all connections in a single queue. The load balancing is essentially random here.

Summary

[Expand]
Inherited Fields
From class com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool
Public Constructors
BagOfConnectionsConnectionPoolImpl(ConnectionPoolConfiguration config, ConnectionFactory<CL> factory, ConnectionPoolMonitor monitor)
Public Methods
<R> ExecuteWithFailover<CL, R> newExecuteWithFailover(Operation<CL, R> op)
Return a new failover context.
Protected Methods
boolean returnConnection(Connection<CL> connection)
[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 BagOfConnectionsConnectionPoolImpl (ConnectionPoolConfiguration config, 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

Protected Methods

protected boolean returnConnection (Connection<CL> connection)