Class RandomLoadBalancingPolicy

All Implemented Interfaces:
Serializable, Cloneable

public class RandomLoadBalancingPolicy extends LoadBalancingPolicy
The load balancing policy that returns endpoints in a random order.
See Also:
  • Constructor Details

    • RandomLoadBalancingPolicy

      public RandomLoadBalancingPolicy()
      Constructs a RandomLoadBalancingPolicy.
    • RandomLoadBalancingPolicy

      public RandomLoadBalancingPolicy(String nReplicas)
      Constructs a RandomLoadBalancingPolicy with values for all its fields.
      Parameters:
      nReplicas - The number of replicas that will be used to gather the endpoints of a replica group.
  • Method Details

    • clone

      public RandomLoadBalancingPolicy clone()
      Description copied from class: Value
      Returns a copy of the object. The cloned object contains field-for-field copies of the state.
      Overrides:
      clone in class LoadBalancingPolicy
      Returns:
      The cloned object.
    • ice_staticId

      public static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::RandomLoadBalancingPolicy"
    • ice_id

      public String ice_id()
      Returns the Slice type ID of the most-derived interface supported by this object.
      Overrides:
      ice_id in class LoadBalancingPolicy
      Returns:
      The return value is always ::Ice::Object.