Enum MissingCacheStrategy

    • Enum Constant Detail

      • CREATE_WARN

        public static final MissingCacheStrategy CREATE_WARN
        Create a new cache when a cache is not found (see CREATE), and also log a warning about the missing cache.
      • CREATE

        public static final MissingCacheStrategy CREATE
        Create a new cache when a cache is not found, without logging any warning about the missing cache. Note that caches created this way may be very badly configured (unlimited size and no eviction in particular) unless the cache provider was explicitly configured to use an appropriate configuration for default caches. Ehcache in particular allows to set such default configuration using cache templates, see http://www.ehcache.org/documentation/3.0/107.html#supplement-jsr-107-configurations
    • Method Detail

      • values

        public static MissingCacheStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MissingCacheStrategy c : MissingCacheStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MissingCacheStrategy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getExternalRepresentation

        public String getExternalRepresentation()