Class ReplCache.ConsistentHashFunction<K>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Address> hash​(K key, short replication_count)
      Function that, given a key and a replication count, returns replication_count number of different addresses of nodes.
      void installNodes​(java.util.List<Address> new_nodes)
      When the topology changes, this method will be called.
      • Methods inherited from class java.lang.Object

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

      • ConsistentHashFunction

        public ConsistentHashFunction()
    • Method Detail

      • hash

        public java.util.List<Address> hash​(K key,
                                            short replication_count)
        Description copied from interface: ReplCache.HashFunction
        Function that, given a key and a replication count, returns replication_count number of different addresses of nodes.
        Specified by:
        hash in interface ReplCache.HashFunction<K>
        Returns: