Package com.hazelcast.config
Enum CacheDeserializedValues
- All Implemented Interfaces:
Serializable
,Comparable<CacheDeserializedValues>
,java.lang.constant.Constable
public enum CacheDeserializedValues extends Enum<CacheDeserializedValues>
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
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Always cache de-serialized valuesINDEX_ONLY
Cache values only when using search indexesNEVER
Never cache de-serialized value -
Method Summary
Modifier and Type Method Description static CacheDeserializedValues
parseString(String string)
Create instance from Stringstatic CacheDeserializedValues
valueOf(String name)
Returns the enum constant of this type with the specified name.static CacheDeserializedValues[]
values()
Returns an array containing the constants of this enum type, 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 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
-
parseString
Create instance from String- Parameters:
string
- the string value to parse- Returns:
- instance of
CacheDeserializedValues
- Throws:
IllegalArgumentException
- when unknown value is passed
-