Enum RegionType
- java.lang.Object
-
- java.lang.Enum<RegionType>
-
- de.hybris.platform.regioncache.region.RegionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RegionType>
public enum RegionType extends java.lang.Enum<RegionType>
Defines 'special' type codes for defining cache region.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_TYPES_ALL_TYPES: region is handling all possible types available in the platform.NON_REGISTRABLEFlag marks registry as no handling queriesQUERY_CACHE_TYPEAll types which uses cache registry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanrequiresRegistry()Deprecated.since 5.0java.lang.Stringvalue()static RegionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RegionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL_TYPES
public static final RegionType ALL_TYPES
_ALL_TYPES: region is handling all possible types available in the platform. One of defined regions MUST be configured to handle all types. If region R1 handles type T and the region R2 handles __ALL_TYPES_ only it is assumed that R2 does not handle T. To make R2 handling type T it should be configured for handling T and _ALL_TYPES_,
-
NON_REGISTRABLE
public static final RegionType NON_REGISTRABLE
Flag marks registry as no handling queries
-
QUERY_CACHE_TYPE
public static final RegionType QUERY_CACHE_TYPE
All types which uses cache registry.
-
-
Method Detail
-
values
public static RegionType[] 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 (RegionType c : RegionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RegionType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
value
public java.lang.String value()
-
requiresRegistry
@Deprecated public boolean requiresRegistry()
Deprecated.since 5.0
-
-