public enum CachePeekMode extends Enum<CachePeekMode>
IgniteCache.localPeek(Object, CachePeekMode...)
,
IgniteCache.localEntries(CachePeekMode...)
,
IgniteCache.localSize(CachePeekMode...)
and
IgniteCache.size(CachePeekMode...)
methods.
The following modes are supported:
Enum Constant and Description |
---|
ALL
Peeks into all available cache storages.
|
BACKUP
Peek value from backup copies of partitioned cache only (skip near cache).
|
NEAR
Peek into near cache only (don't peek into partitioned cache).
|
OFFHEAP
Peeks value from the off-heap storage only, without loading off-heap value into cache.
|
ONHEAP
Peeks value from the on-heap storage only.
|
PRIMARY
Peek value from primary copy of partitioned cache only (skip near cache).
|
Modifier and Type | Method and Description |
---|---|
static @Nullable CachePeekMode |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static CachePeekMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachePeekMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachePeekMode ALL
public static final CachePeekMode NEAR
CacheMode.LOCAL
cache, behaves as ALL
mode.public static final CachePeekMode PRIMARY
CacheMode.LOCAL
cache, behaves as ALL
mode.public static final CachePeekMode BACKUP
CacheMode.LOCAL
cache, behaves as ALL
mode.public static final CachePeekMode ONHEAP
public static final CachePeekMode OFFHEAP
public static CachePeekMode[] values()
for (CachePeekMode c : CachePeekMode.values()) System.out.println(c);
public static CachePeekMode 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 null@Nullable public static @Nullable CachePeekMode fromOrdinal(byte ord)
ord
- Ordinal value.null
if ordinal out of range.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024