- All Implemented Interfaces:
Serializable
,Comparable<CacheStatefulBehaviour>
,java.lang.constant.Constable
Options for how the API cache handles entities that are stateful.
- Since:
- 2.22
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CacheStatefulBehaviour
Returns the enum constant of this type with the specified name.static CacheStatefulBehaviour[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EXACT
The version of the entity in the cache must match exactly, otherwise it is fetched from the server. -
LATEST
The entity is fetched if the version in the cache is older than the version in the URI. If the same, newer, or the URI has no state version, the cached version is returned. -
ANY
Only fetch entities if they are not in the cache. The state version is ignored.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-