public enum CacheFileLocalStoreWriteMode extends Enum<CacheFileLocalStoreWriteMode>
CacheFileLocalStore.setWriteDelay(long)
method.Enum Constant and Description |
---|
ASYNC_BUFFERED
Store will not attempt to flush buffers until they are full or flush will occur in a background
thread after the specified delay.
|
SYNC
Store will attempt to flush buffers right away.
|
SYNC_BUFFERED
Store will attempt to flush buffers only after the specified delay in hope that other threads will write to the
same buffer for better batching effect.
|
Modifier and Type | Method and Description |
---|---|
static CacheFileLocalStoreWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheFileLocalStoreWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheFileLocalStoreWriteMode SYNC
SYNC_BUFFERED
and the worst throughput for multithreaded updates.public static final CacheFileLocalStoreWriteMode ASYNC_BUFFERED
CacheFileLocalStore.setWriteDelay(long)
public static final CacheFileLocalStoreWriteMode SYNC_BUFFERED
ASYNC_BUFFERED
is that flush always happens
synchronously but not in a background thread. The mode is synchronous, the store will not loose updates.
This mode trades latency for better multithreaded throughput.CacheFileLocalStore.setWriteDelay(long)
public static CacheFileLocalStoreWriteMode[] values()
for (CacheFileLocalStoreWriteMode c : CacheFileLocalStoreWriteMode.values()) System.out.println(c);
public static CacheFileLocalStoreWriteMode 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
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024