Class PoolMap.RoundRobinPool<R>

java.lang.Object
org.apache.hadoop.hbase.util.PoolMap.RoundRobinPool<R>
Type Parameters:
R - the type of the resource
All Implemented Interfaces:
PoolMap.Pool<R>
Enclosing class:
PoolMap<K,V>

static class PoolMap.RoundRobinPool<R> extends Object implements PoolMap.Pool<R>
The RoundRobinPool represents a PoolMap.Pool, which stores its resources in an ArrayList. It load-balances access to its resources by returning a different resource every time a given key is looked up.

If maxSize is set to Integer.MAX_VALUE, then the size of the pool is unbounded. Otherwise, it caps the number of resources in this pool to the (non-zero positive) value specified in maxSize.