Class CacheEntryEvaluator


  • public class CacheEntryEvaluator
    extends java.lang.Object
    Evaluates cache keys and values for the various cache services.

    In the adapter configuration file this class is aliased as cache-entry-evaluator which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • CacheEntryEvaluator

        public CacheEntryEvaluator()
    • Method Detail

      • setErrorOnEmptyKey

        public void setErrorOnEmptyKey​(java.lang.Boolean bool)
        Throw an error if we cannot look up the Key value
        Parameters:
        bool - default is true.
      • getErrorOnEmptyKey

        public java.lang.Boolean getErrorOnEmptyKey()
      • setErrorOnEmptyValue

        public void setErrorOnEmptyValue​(java.lang.Boolean bool)
        Throw an error if we cannot look up the Value to be stored in the cache
        Parameters:
        bool - default is true.
      • getErrorOnEmptyValue

        public java.lang.Boolean getErrorOnEmptyValue()
      • setKeyTranslator

        public void setKeyTranslator​(CacheKeyTranslator translator)
        Sets the translator to use to extract the Key value from the message
        Parameters:
        translator - default is null.
      • getKeyTranslator

        public CacheKeyTranslator getKeyTranslator()
        Get the configured key translator.
        Returns:
        the configured key translator.
      • setValueTranslator

        public void setValueTranslator​(CacheValueTranslator translator)
        Sets the translator to extract the Value to be stored in the cache
        Parameters:
        translator - default is null.
      • getValueTranslator

        public CacheValueTranslator getValueTranslator()
        Get the configured value translator.
        Returns:
        the configured value translator.
      • getFriendlyName

        public java.lang.String getFriendlyName()
      • setFriendlyName

        public void setFriendlyName​(java.lang.String name)
        Set the name of this cache entry generator for logging purposes.
        Parameters:
        name -
      • friendlyName

        public java.lang.String friendlyName()