This policy encapsulates another policy. The resulting policy works in the following way:
Do note that only replica for which the child policy {@code distance}method returns {@code HostDistance.LOCAL} will be considered havingpriority. For example, if you wrap {@link DCAwareRoundRobinPolicy} with thistoken aware policy, replicas from remote data centers may only be returned after all the host of the local data center.
|
|
|
|
|
|
|
|
|
|
|
|
|
|