- All Implemented Interfaces:
Serializable
,Comparable<StatefulOverride>
,java.lang.constant.Constable
Enumeration of the ways to override the normal behaviour of the API and
the cache to get specific versions of stateful entities.
- Since:
- 2.24.8
-
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 StatefulOverride
Returns the enum constant of this type with the specified name.static StatefulOverride[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
LATEST
Fetch the latest version of the stateful entity. This retrieves the entity with any state parameter removed from the URI. It does not look in the cache for the entity, always calling through to the Clarity API. The entity returned is cached. -
EXACT
Fetch the exact version of a stateful entity, the version as specified by its state parameter. Will be fetched from the cache if the cache happens to contain this exact version, otherwise it will go to the Clarity API. The returned entity may be stored in the cache according to the usual cache rules. If there is a newer version of the entity in the cache already, that will be 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
-