public enum CacheFlag extends Enum<CacheFlag>
CacheProjection:
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
IgniteCache.invoke(Object, EntryProcessor, Object[]) writes in
CacheAtomicityMode.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. no read-through and no write-through behavior.
|
SKIP_SWAP
Skip swap space for reads and writes.
|
SYNC_COMMIT
Synchronous commit.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheFlag |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static CacheFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheFlag LOCAL
public static final CacheFlag READ
public static final CacheFlag 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.
org.apache.ignite.configuration.CacheConfiguration#getCloner()public static final CacheFlag SKIP_STORE
public static final CacheFlag SKIP_SWAP
public static final CacheFlag SYNC_COMMIT
public static final CacheFlag 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 CacheFlag FORCE_TRANSFORM_BACKUP
IgniteCache.invoke(Object, EntryProcessor, Object[]) writes in
CacheAtomicityMode.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 CacheFlag[] values()
for (CacheFlag c : CacheFlag.values()) System.out.println(c);
public static CacheFlag 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
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC3 Release Date : March 24 2015