Class ZoneAffinityClusterResolver

  • All Implemented Interfaces:
    ClusterResolver<AwsEndpoint>

    public class ZoneAffinityClusterResolver
    extends java.lang.Object
    implements ClusterResolver<AwsEndpoint>
    It is a cluster resolver that reorders the server list, such that the first server on the list is in the same zone as the client. The server is chosen randomly from the available pool of server in that zone. The remaining servers are appended in a random order, local zone first, followed by servers from other zones.