Class Key


  • public final class Key
    extends Object
    Keys for cross-service EndpointCaches comprised of a service name, a Query, and a scope.

    Keys are value objects with informative string representations.

    Author:
    Fabio Simeoni
    • Method Detail

      • key

        public static Key key​(String name,
                              Query<?> query)
        Creates a Key with a given service name and Query
        Parameters:
        name - the name
        query - the query
        Returns:
        the key
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object