public enum StorageType extends Enum<StorageType>
Enum Constant and Description |
---|
BINARY
Deprecated.
since 11.0, with no replacement. Use
HEAP and the cache's EncodingConfiguration to
define a MediaType that is byte[] or primitive based. |
HEAP
Objects are stored on heap.
|
OBJECT
Deprecated.
since 11.0, use
HEAP instead. |
OFF_HEAP
Entries are stored in internal memory off the normal Java heap.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canStoreReferences() |
static StorageType |
forElement(String element) |
Element |
getElement() |
static StorageType |
valueOf(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.
|
@Deprecated public static final StorageType OBJECT
HEAP
instead.public static final StorageType HEAP
MediaType
causes the storage to be byte[], then equality is defined by these
byte[] instances.@Deprecated public static final StorageType BINARY
HEAP
and the cache's EncodingConfiguration
to
define a MediaType
that is byte[] or primitive based.public static final StorageType OFF_HEAP
public static StorageType[] values()
for (StorageType c : StorageType.values()) System.out.println(c);
public static StorageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Element getElement()
public static StorageType forElement(String element)
public boolean canStoreReferences()
Copyright © 2021 JBoss by Red Hat. All rights reserved.