Enum StorageType
- java.lang.Object
-
- java.lang.Enum<StorageType>
-
- org.infinispan.configuration.cache.StorageType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StorageType>
public enum StorageType extends java.lang.Enum<StorageType>
Enumeration defining the various storage types for the data container.- Since:
- 9.0
- Author:
- wburns
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StorageType
forElement(java.lang.String element)
Element
getElement()
static StorageType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StorageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT
public static final StorageType OBJECT
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.
-
BINARY
public static final StorageType BINARY
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
public static final StorageType 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 Detail
-
values
public static StorageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StorageType c : StorageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StorageType valueOf(java.lang.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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getElement
public Element getElement()
-
forElement
public static StorageType forElement(java.lang.String element)
-
-