java.lang.Object
com.zeroc.Ice.Value
com.zeroc.IceGrid.LoadBalancingPolicy
com.zeroc.IceGrid.RandomLoadBalancingPolicy
- All Implemented Interfaces:
Serializable,Cloneable
The load balancing policy that returns endpoints in a random order.
Remarks:
The Slice compiler generated this class from Slice class ::IceGrid::RandomLoadBalancingPolicy.
- See Also:
-
Field Summary
Fields inherited from class com.zeroc.IceGrid.LoadBalancingPolicy
nReplicas -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aRandomLoadBalancingPolicy.RandomLoadBalancingPolicy(String nReplicas) Constructs aRandomLoadBalancingPolicywith values for all its fields. -
Method Summary
Methods inherited from class com.zeroc.Ice.Value
ice_getSlicedData, ice_postUnmarshal, ice_preMarshal
-
Constructor Details
-
RandomLoadBalancingPolicy
public RandomLoadBalancingPolicy()Constructs aRandomLoadBalancingPolicy. -
RandomLoadBalancingPolicy
Constructs aRandomLoadBalancingPolicywith 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
Description copied from class:ValueReturns a shallow field-for-field copy of this object.- Overrides:
clonein classLoadBalancingPolicy- Returns:
- the cloned object
-
ice_staticId
Gets the type ID of the associated Slice interface.- Returns:
- the string "::IceGrid::RandomLoadBalancingPolicy"
-
ice_id
Returns the Slice type ID of the most-derived class supported by this object.- Overrides:
ice_idin classLoadBalancingPolicy- Returns:
- the Slice type ID
-