public final class RoundRobinBalancingPolicy extends Object implements LoadBalancingPolicy
| Modifier and Type | Field and Description |
|---|---|
private int |
counter |
| Constructor and Description |
|---|
RoundRobinBalancingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
private int |
getAndIncrement(int size) |
Object |
getPool(Collection<Object> pools)
Returns pool on the basis of loadbalancing policy.
|
public Object getPool(Collection<Object> pools)
LoadBalancingPolicygetPool in interface LoadBalancingPolicyprivate int getAndIncrement(int size)
Copyright © 2015. All Rights Reserved.