Enum Class StorageType
- All Implemented Interfaces:
Serializable
,Comparable<StorageType>
,Constable
Enumeration defining the various storage types for the data container.
- Since:
- 9.0
- Author:
- wburns
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.since 11.0, with no replacement.Objects are stored on heap.Deprecated, for removal: This API element is subject to removal in a future version.since 11.0, useHEAP
instead.Entries are stored in internal memory off the normal Java heap. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static StorageType
forElement
(String element) static StorageType
Returns the enum constant of this class with the specified name.static StorageType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT
Deprecated, for removal: This API element is subject to removal in a future version.since 11.0, useHEAP
instead.Objects are stored on heap as objects as provided. These are serialized across to other nodes and stored as deserialized instances of the object. Equality is defined by the equals method of the implementation class. -
HEAP
Objects are stored on heap. Equality is defined by the equals of the implementation class. If the configuredMediaType
causes the storage to be byte[], then equality is defined by these byte[] instances. -
BINARY
Deprecated, for removal: This API element is subject to removal in a future version.since 11.0, with no replacement. UseHEAP
and the cache'sEncodingConfiguration
to define aMediaType
that is byte[] or primitive based.Entries are stored in Java heap but as byte[] instances. This mode has equality defined by the byte[] created from the serialized from of the provided object. -
OFF_HEAP
Entries are stored in internal memory off the normal Java heap. This mode has equality defined by the byte[] created from the serialized form of the provided object.
-
-
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
-
getElement
-
forElement
-
canStoreReferences
public boolean canStoreReferences()
-