public enum CacheWriteSynchronizationMode extends Enum<CacheWriteSynchronizationMode>
FULL_ASYNC
}, which means that Ignite 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 Transaction.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 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 mode. |
Modifier and Type | Method and Description |
---|---|
static 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
mode. 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 CacheWriteSynchronizationMode fromOrdinal(int ord)
ord
- Ordinal value.null
if ordinal out of range.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0.final Release Date : December 29 2015