Class ConfigCacheKey

java.lang.Object
com.yahoo.vespa.config.ConfigCacheKey

public class ConfigCacheKey extends Object
A ConfigKey that also uses the def MD5 sum. Used for caching when def payload is user provided.
Author:
Vegard Havdal
  • Constructor Details

    • ConfigCacheKey

      public ConfigCacheKey(ConfigKey<?> key, String defMd5)
      Constructs a new server key based on the contents of the given ConfigKey and the def md5 sum.
      Parameters:
      key - The key to base on
      defMd5 - MD5 checksum of the config definition. Never null.
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDefMd5

      public String getDefMd5()
      The def md5 sum of this key
      Returns:
      md5 sum
    • getKey

      public ConfigKey<?> getKey()
    • toString

      public String toString()
      Overrides:
      toString in class Object