public enum GridCacheMemoryMode extends Enum<GridCacheMemoryMode>
| Enum Constant and Description |
|---|
OFFHEAP_TIERED
Works the same as
ONHEAP_TIERED, except that entries never end up in heap memory and get
stored in offheap memory right away. |
OFFHEAP_VALUES
Entry keys will be stored on heap memory, and values will be stored in offheap memory.
|
ONHEAP_TIERED
Entries will be stored on-heap first.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheMemoryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheMemoryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheMemoryMode ONHEAP_TIERED
Note that heap memory evictions are handled by configured GridCacheEvictionPolicy
implementation. By default, no eviction policy is enabled, so entries never leave heap
memory space unless explicitly removed.
public static final GridCacheMemoryMode OFFHEAP_TIERED
ONHEAP_TIERED, except that entries never end up in heap memory and get
stored in offheap memory right away. Entries get cached in offheap memory first and then
get evicted to swap, if one is configured.public static final GridCacheMemoryMode OFFHEAP_VALUES
GridCacheEvictionPolicy.public static GridCacheMemoryMode[] values()
for (GridCacheMemoryMode c : GridCacheMemoryMode.values()) System.out.println(c);
public static GridCacheMemoryMode 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 nullCopyright © 2014. All rights reserved.