public enum GridCacheAtomicWriteOrderMode extends Enum<GridCacheAtomicWriteOrderMode>
GridCacheAtomicityMode.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 GridCacheWriteSynchronizationMode.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 GridCacheWriteSynchronizationMode.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
GridCacheWriteSynchronizationMode.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 GridCacheAtomicWriteOrderMode |
fromOrdinal(byte ord)
Efficiently gets enumerated value from its ordinal.
|
static GridCacheAtomicWriteOrderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheAtomicWriteOrderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheAtomicWriteOrderMode CLOCK
GridCacheWriteSynchronizationMode.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 GridCacheWriteSynchronizationMode.FULL_SYNC
write synchronization mode, as for other synchronization modes it does not render better performance.
public static final GridCacheAtomicWriteOrderMode PRIMARY
public static GridCacheAtomicWriteOrderMode[] values()
for (GridCacheAtomicWriteOrderMode c : GridCacheAtomicWriteOrderMode.values()) System.out.println(c);
public static GridCacheAtomicWriteOrderMode 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 GridCacheAtomicWriteOrderMode fromOrdinal(byte ord)
ord - Ordinal value.null if ordinal out of range.Copyright © 2014. All rights reserved.