Package com.hazelcast.config
Enum Class CacheDeserializedValues
- All Implemented Interfaces:
Serializable
,Comparable<CacheDeserializedValues>
,Constable
Control caching of de-serialized values. Caching makes query evaluation faster but it costs memory.
To maintain reusability, cached values are used by read-only operations only and they are never
passed to user-code where they could be accidentally mutated. Users will always get a fresh object,
which they are free to mutate.
It does not have any effect when
Portable
serialization or
InMemoryFormat.OBJECT
format is used.- Since:
- 3.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAlways cache de-serialized valuesCache values only when using search indexesNever cache de-serialized value -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheDeserializedValues
parseString
(String string) Create instance from Stringstatic CacheDeserializedValues
Returns the enum constant of this class with the specified name.static CacheDeserializedValues[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
Never cache de-serialized value -
INDEX_ONLY
Cache values only when using search indexes -
ALWAYS
Always cache de-serialized values
-
-
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
-
parseString
Create instance from String- Parameters:
string
- the string value to parse- Returns:
- instance of
CacheDeserializedValues
- Throws:
IllegalArgumentException
- when unknown value is passed
-