Class ConfigCacheKey


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

      Constructors 
      Constructor Description
      ConfigCacheKey​(ConfigKey<?> key, java.lang.String defMd5)
      Constructs a new server key based on the contents of the given ConfigKey and the def md5 sum.
    • Constructor Detail

      • ConfigCacheKey

        public ConfigCacheKey​(ConfigKey<?> key,
                              java.lang.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 Detail

      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getDefMd5

        public java.lang.String getDefMd5()
        The def md5 sum of this key
        Returns:
        md5 sum
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object