com.hazelcast.client.util
Class RoundRobinLB

java.lang.Object
  extended by com.hazelcast.client.util.AbstractLoadBalancer
      extended by com.hazelcast.client.util.RoundRobinLB
All Implemented Interfaces:
LoadBalancer, MembershipListener, EventListener

public class RoundRobinLB
extends AbstractLoadBalancer

A LoadBalancer implementation that relies on using round robin to a next member to send a request to.

Round robin is done based on best effort basis, the order of members for concurrent calls to the next() is not guaranteed.


Constructor Summary
RoundRobinLB()
           
RoundRobinLB(int seed)
           
 
Method Summary
 Member next()
          Returns the next member to route to.
 
Methods inherited from class com.hazelcast.client.util.AbstractLoadBalancer
getMembers, init, memberAdded, memberAttributeChanged, memberRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinLB

public RoundRobinLB()

RoundRobinLB

public RoundRobinLB(int seed)
Method Detail

next

public Member next()
Description copied from interface: LoadBalancer
Returns the next member to route to.

Returns:
Returns the next member or null if no member is available


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.