com.hazelcast.client.util

## Class RandomLB

- java.lang.Object
- - com.hazelcast.client.util.AbstractLoadBalancer
  - - com.hazelcast.client.util.RandomLB

- All Implemented Interfaces:
    LoadBalancer, InitialMembershipListener, MembershipListener, EventListener

      public class RandomLB
      extends AbstractLoadBalancer

  A `LoadBalancer` that selects a random member to route to.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RandomLB()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Member` | `next()` Returns the next member to route to.

    - ### Methods inherited from class com.hazelcast.client.util.AbstractLoadBalancer

      `getMembers, init, init, memberAdded, memberAttributeChanged, memberRemoved`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RandomLB

          public RandomLB()

  - ### 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 © 2019. All rights reserved.