Interface HashFunction

    • Method Summary

      Modifier and Type Method and Description
      int hash(String routing)
      Calculate a hash value for routing
      int hash(String type, String id)
      Calculate a hash value for routing and its type
    • Method Detail

      • hash

        int hash(String routing)
        Calculate a hash value for routing
        Parameters:
        routing - String to calculate the hash value from
        Returns:
        hash value of the given routing string
      • hash

        int hash(String type,
                 String id)
        Calculate a hash value for routing and its type
        Parameters:
        type - types name
        routing - String to calculate the hash value from
        Returns:
        hash value of the given type and routing string