public enum GridCacheWriteSynchronizationMode extends Enum<GridCacheWriteSynchronizationMode>
FULL_ASYNC}, which means that GridGain will not wait for responses from
participating nodes. This means that by default remote nodes may get their state updated slightly after
any of the cache write methods complete, or after GridCacheTx.commit() method completes.
Note that regardless of write synchronization mode, cache data will always remain fully consistent across all participating nodes.
Write synchronization mode may be configured via GridCacheConfiguration.getWriteSynchronizationMode()
configuration property.
| Enum Constant and Description |
|---|
FULL_ASYNC
Flag indicating that GridGain will not wait for write or commit responses from participating nodes,
which means that remote nodes may get their state updated a bit after any of the cache write methods
complete, or after
GridCacheTx.commit() method completes. |
FULL_SYNC
Flag indicating that GridGain should wait for write or commit replies from all nodes.
|
PRIMARY_SYNC
This flag only makes sense for
GridCacheMode.PARTITIONED mode. |
| Modifier and Type | Method and Description |
|---|---|
static GridCacheWriteSynchronizationMode |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheWriteSynchronizationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheWriteSynchronizationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheWriteSynchronizationMode FULL_SYNC
public static final GridCacheWriteSynchronizationMode FULL_ASYNC
GridCacheTx.commit() method completes.public static final GridCacheWriteSynchronizationMode PRIMARY_SYNC
GridCacheMode.PARTITIONED mode. When enabled, GridGain
will wait for write or commit to complete on primary node, but will not wait for
backups to be updated.public static GridCacheWriteSynchronizationMode[] values()
for (GridCacheWriteSynchronizationMode c : GridCacheWriteSynchronizationMode.values()) System.out.println(c);
public static GridCacheWriteSynchronizationMode 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 GridCacheWriteSynchronizationMode fromOrdinal(int ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.