public enum CacheWriteSynchronizationMode extends Enum<CacheWriteSynchronizationMode>
PRIMARY_SYNC
}, which means that Ignite will wait for write or commit to complete on
primary
node, but will not wait for backups to be updated.
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 CacheConfiguration.getWriteSynchronizationMode()
configuration property.
Enum Constant and Description |
---|
FULL_ASYNC
Flag indicating that Ignite 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
Transaction.commit() method completes. |
FULL_SYNC
Flag indicating that Ignite should wait for write or commit replies from all nodes.
|
PRIMARY_SYNC
This flag only makes sense for
CacheMode.PARTITIONED and CacheMode.REPLICATED modes. |
Modifier and Type | Method and Description |
---|---|
static @Nullable CacheWriteSynchronizationMode |
fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.
|
static CacheWriteSynchronizationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheWriteSynchronizationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheWriteSynchronizationMode FULL_SYNC
public static final CacheWriteSynchronizationMode FULL_ASYNC
Transaction.commit()
method completes.public static final CacheWriteSynchronizationMode PRIMARY_SYNC
CacheMode.PARTITIONED
and CacheMode.REPLICATED
modes.
When enabled, Ignite will wait for write or commit to complete on primary
node, but will not wait for
backups to be updated.public static CacheWriteSynchronizationMode[] values()
for (CacheWriteSynchronizationMode c : CacheWriteSynchronizationMode.values()) System.out.println(c);
public static CacheWriteSynchronizationMode 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 CacheWriteSynchronizationMode fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024