public interface LoadBalancer
LoadBalancerallows you to send operations to one of a number of endpoints(Members). It is up to the implementation to use different load balancing policies.
If Client is configured with
only the operations that are not key based will be routed to the endpoint returned by the LoadBalancer. If it is
LoadBalancer will not be used.
For configuration see
|Modifier and Type||Method and Description|
Returns whether this instance supports getting data members through a call to
Initializes the LoadBalancer.
Returns the next member to route to.
Returns the next data member to route to.
void init(Cluster cluster, ClientConfig config)
cluster- the Cluster this LoadBalancer uses to select members from.
config- the ClientConfig.
default Member nextDataMember()
UnsupportedOperationException- if the operation is not supported by this instance
default boolean canGetNextDataMember()
This method is used by components that require communication with data members only, such as the SQL engine.
Copyright © 2020 Hazelcast, Inc.. All rights reserved.