public enum CacheAtomicWriteOrderMode extends Enum<CacheAtomicWriteOrderMode>
CacheAtomicityMode.ATOMIC
atomicity mode. Write ordering mode determines which node assigns the write version, sender or the primary node.
For example, CLOCK mode assigns write versions on a sender node which generally leads to better
performance in CacheWriteSynchronizationMode.FULL_SYNC synchronization mode, since in this case
sender can send write requests to primary and backups at the same time. Otherwise, if ordering mode is
PRIMARY, it would only send request to primary node, which in turn will assign write version
and forward it to backups.
CLOCK mode will be automatically configured only with CacheWriteSynchronizationMode.FULL_SYNC
write synchronization mode, as for other synchronization modes it does not render better performance.
| Enum Constant and Description |
|---|
CLOCK
In this mode, write versions are assigned on a sender node which generally leads to better
performance in
CacheWriteSynchronizationMode.FULL_SYNC synchronization mode, since in this case
sender can send write requests to primary and backups at the same time. |
PRIMARY
Cache version is assigned only on primary node.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheAtomicWriteOrderMode |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static CacheAtomicWriteOrderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheAtomicWriteOrderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheAtomicWriteOrderMode CLOCK
CacheWriteSynchronizationMode.FULL_SYNC synchronization mode, since in this case
sender can send write requests to primary and backups at the same time.
This mode will be automatically configured only with CacheWriteSynchronizationMode.FULL_SYNC
write synchronization mode, as for other synchronization modes it does not render better performance.
public static final CacheAtomicWriteOrderMode PRIMARY
public static CacheAtomicWriteOrderMode[] values()
for (CacheAtomicWriteOrderMode c : CacheAtomicWriteOrderMode.values()) System.out.println(c);
public static CacheAtomicWriteOrderMode 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 CacheAtomicWriteOrderMode fromOrdinal(byte ord)
ord - Ordinal value.null if ordinal out of range.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016