public enum GridCacheFlag extends Enum<GridCacheFlag>
GridCacheProjection:
Also, some flags, like LOCAL, or READ may be implicitly set whenever
creating new projections and passing entries to predicate filters.| Enum Constant and Description |
|---|
CLONE
Clone values prior to returning them to user.
|
FORCE_TRANSFORM_BACKUP
Skips version check during
GridCacheProjection.transform(Object, GridClosure) writes in
GridCacheAtomicityMode.ATOMIC mode. |
INVALIDATE
Switches a cache projection to work in
'invalidation' mode. |
LOCAL
Only operations that don't require any communication with
other cache nodes are allowed.
|
READ
Only operations that don't change cached data are allowed.
|
SKIP_STORE
Skips store, i.e.
|
SKIP_SWAP
Skip swap space for reads and writes.
|
SYNC_COMMIT
Synchronous commit.
|
| Modifier and Type | Method and Description |
|---|---|
static GridCacheFlag |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheFlag LOCAL
public static final GridCacheFlag READ
public static final GridCacheFlag CLONE
Whenever values are returned from cache, they cannot be directly updated as cache holds the same references internally. If it is needed to update values that are returned from cache, this flag will provide automatic cloning of values prior to returning so they can be directly updated.
GridCacheConfiguration.getCloner()public static final GridCacheFlag SKIP_STORE
public static final GridCacheFlag SKIP_SWAP
public static final GridCacheFlag SYNC_COMMIT
public static final GridCacheFlag INVALIDATE
'invalidation' mode.
Instead of updating remote entries with new values, small invalidation
messages will be sent to set the values to null.public static final GridCacheFlag FORCE_TRANSFORM_BACKUP
GridCacheProjection.transform(Object, GridClosure) writes in
GridCacheAtomicityMode.ATOMIC mode. By default, in ATOMIC mode, whenever
transform(...) is called, cache values (and not the transform closure) are sent from primary
node to backup nodes to ensure proper update ordering.
By setting this flag, version check is skipped, and the transform closure is applied on both, primary
and backup nodes. Use this flag for better performance if you are sure that there are no
concurrent updates happening for the same key when transform(...) method is called.
public static GridCacheFlag[] values()
for (GridCacheFlag c : GridCacheFlag.values()) System.out.println(c);
public static GridCacheFlag 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 GridCacheFlag fromOrdinal(int ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.