Package com.scaleout.client.caching
Enum Class ClientCacheOptions
- All Implemented Interfaces:
Serializable
,Comparable<ClientCacheOptions>
,Constable
The ClientCacheOptions
enum indicates in-memory client cache usage.
The ClientCacheOptions
can be used to disable the in-memory ClientCache
or dictate ClientCache
behavior.
-
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 ClientCacheOptions
fromString
(String value) Retrieve a ClientCacheOptions enum from a string.static ClientCacheOptions
Returns the enum constant of this class with the specified name.static ClientCacheOptions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Reference
Returns a reference to the object. Note, multiple threads accessing the same reference could cause unexpected behavior. -
DeepCopy
Returns a "deep copy" of the object. -
Disable
Disables the client cache.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
Retrieve a ClientCacheOptions enum from a string. Accepted values:Constants.OBJECT_CLIENT_CACHE_OPTION_DEEPCOPY
Constants.OBJECT_CLIENT_CACHE_OPTION_REFERENCE
Constants.OBJECT_CLIENT_CACHE_OPTION_DISABLED
- Parameters:
value
-Constants.OBJECT_CLIENT_CACHE_OPTION_DEEPCOPY
,Constants.OBJECT_CLIENT_CACHE_OPTION_REFERENCE
Constants.OBJECT_CLIENT_CACHE_OPTION_DISABLED
- Returns:
- a ClientCacheOption that maps from the parameter string value.
-