public enum GridCacheFileLocalStoreWriteMode extends Enum<GridCacheFileLocalStoreWriteMode>
GridCacheFileLocalStore.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 GridCacheFileLocalStoreWriteMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GridCacheFileLocalStoreWriteMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GridCacheFileLocalStoreWriteMode SYNC
SYNC_BUFFERED and the worst throughput for multithreaded updates.public static final GridCacheFileLocalStoreWriteMode ASYNC_BUFFERED
public static final GridCacheFileLocalStoreWriteMode 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.public static GridCacheFileLocalStoreWriteMode[] values()
for (GridCacheFileLocalStoreWriteMode c : GridCacheFileLocalStoreWriteMode.values()) System.out.println(c);
public static GridCacheFileLocalStoreWriteMode 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
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014