infinispan.distribution.DefaultconsistentHash.java
This is a implement of consistent hashing algorithm. In DefaultConsistentHash class, setCaches(List<Address caches) set up a nodes circle in positions(TreeMap<Integer,Address>) according to given nodes address hash code.
In hash processing,position is computered according to object address. The following listed is main implements of construction for Consistent Hashing circle
Fist step, setCache(List<Address> caches) implements Consistent Hashing algorithm that construct hashing circle. According to exsiting caches, Consistent Hashing circle is constructed. Second, locate() method provides cache's addresses by given object Key and replication count.
I will post the sequence chart later when I have free time.