Class CacheKeyConfiguration

  • All Implemented Interfaces:
    Serializable

    public class CacheKeyConfiguration
    extends Object
    implements Serializable
    Configuration defining various aspects of cache keys without explicit usage of annotations on user classes.
    See Also:
    Serialized Form
    • Constructor Detail

      • CacheKeyConfiguration

        public CacheKeyConfiguration()
        Creates an empty cache key configuration that should be populated via setters.
      • CacheKeyConfiguration

        public CacheKeyConfiguration​(Class keyCls)
        Parameters:
        keyCls - Key class.
      • CacheKeyConfiguration

        public CacheKeyConfiguration​(String typeName,
                                     String affKeyFieldName)
        Creates cache key configuration with given type name and affinity field name.
        Parameters:
        typeName - Type name.
        affKeyFieldName - Affinity field name.
    • Method Detail

      • getTypeName

        public String getTypeName()
        Sets type name for which affinity field name is being defined.
        Returns:
        Type name.
      • setTypeName

        public CacheKeyConfiguration setTypeName​(String typeName)
        Parameters:
        typeName - Type name for which affinity field name is being defined.
        Returns:
        this for chaining.
      • getAffinityKeyFieldName

        public String getAffinityKeyFieldName()
        Gets affinity key field name.
        Returns:
        Affinity key field name.
      • setAffinityKeyFieldName

        public CacheKeyConfiguration setAffinityKeyFieldName​(String affKeyFieldName)
        Sets affinity key field name.
        Parameters:
        affKeyFieldName - Affinity key field name.
        Returns:
        this for chaining.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object