- All Implemented Interfaces:
public enum StorageType extends Enum<StorageType>
Enumeration defining the various storage types for the data container.
Enum Constant Summary
Method SummaryModifier and TypeMethodDescription
static StorageTypeReturns the enum constant of this type with the specified name.
values()Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
OBJECT@Deprecated public static final StorageType OBJECTObjects 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.
HEAPpublic static final StorageType HEAPObjects are stored on heap. Equality is defined by the equals of the implementation class. If the configured
MediaTypecauses the storage to be byte, then equality is defined by these byte instances.
BINARY@Deprecated public static final StorageType BINARYDeprecated.since 11.0, with no replacement. Use
HEAPand the cache's
EncodingConfigurationto define a
MediaTypethat 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_HEAPpublic static final StorageType OFF_HEAPEntries 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.
valuespublic static StorageType values()Returns an array containing the constants of this enum type, in the order they are declared.
- an array containing the constants of this enum type, in the order they are declared
valueOfpublic static StorageType valueOf
(String name)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.)
name- the name of the enum constant to be returned.
- the enum constant with the specified name
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null
getElementpublic Element getElement()
forElementpublic static StorageType forElement
canStoreReferencespublic boolean canStoreReferences()