public enum CacheAtomicWriteOrderMode extends Enum<CacheAtomicWriteOrderMode>
CacheAtomicityMode.ATOMICatomicity mode. Write ordering mode determines which node assigns the write version, sender or the primary node.
CLOCK mode assigns write versions on a sender node which generally leads to better
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.
|Enum Constant and Description|
In this mode, write versions are assigned on a sender node which generally leads to better performance in
Cache version is assigned only on primary node.
|Modifier and Type||Method and Description|
Efficiently gets enumerated value from its ordinal.
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final CacheAtomicWriteOrderMode CLOCK
CacheWriteSynchronizationMode.FULL_SYNCsynchronization 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
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)
@Nullable public static CacheAtomicWriteOrderMode fromOrdinal(byte ord)
ord- Ordinal value.
nullif ordinal out of range.