Package org.ametys.web.cache.pageelement
Enum PageElementCachePolicy.PolicyResult
- java.lang.Object
-
- java.lang.Enum<PageElementCachePolicy.PolicyResult>
-
- org.ametys.web.cache.pageelement.PageElementCachePolicy.PolicyResult
-
- All Implemented Interfaces:
Serializable
,Comparable<PageElementCachePolicy.PolicyResult>
- Enclosing interface:
- PageElementCachePolicy
public static enum PageElementCachePolicy.PolicyResult extends Enum<PageElementCachePolicy.PolicyResult>
Processing result.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KEEP
The corresponding cache entry should be kept.NEED_MORE_INFORMATION
The processing could go deeper in the data to know more precisely what to do with the cache entry.REMOVE
The corresponding cache entry should be removed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PageElementCachePolicy.PolicyResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static PageElementCachePolicy.PolicyResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REMOVE
public static final PageElementCachePolicy.PolicyResult REMOVE
The corresponding cache entry should be removed.
-
KEEP
public static final PageElementCachePolicy.PolicyResult KEEP
The corresponding cache entry should be kept.
-
NEED_MORE_INFORMATION
public static final PageElementCachePolicy.PolicyResult NEED_MORE_INFORMATION
The processing could go deeper in the data to know more precisely what to do with the cache entry.
-
-
Method Detail
-
values
public static PageElementCachePolicy.PolicyResult[] 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 (PageElementCachePolicy.PolicyResult c : PageElementCachePolicy.PolicyResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PageElementCachePolicy.PolicyResult 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 nameNullPointerException
- if the argument is null
-
-