Class ConsistentHashRing


  • public class ConsistentHashRing
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ConsistentHashRing​(int virtualNodes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addServer​(int serverId)  
      int getOwner​(java.lang.Object key)  
      void removeServer​(int serverId)  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConsistentHashRing

        public ConsistentHashRing​(int virtualNodes)
    • Method Detail

      • addServer

        public void addServer​(int serverId)
      • removeServer

        public void removeServer​(int serverId)
      • getOwner

        public int getOwner​(java.lang.Object key)
      • size

        public int size()