Interface HashAlgorithm

All Known Implementing Classes:
DefaultHashAlgorithm

public interface HashAlgorithm
Intents to provide hash for locating a server for a key.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Compute the hash for the given key.
  • Method Details

    • hash

      long hash(String k)
      Compute the hash for the given key.
      Returns:
      a positive integer hash