public enum FileFlushPolicy extends Enum<FileFlushPolicy>
Policies range from maximum performance to maximum durability.
| Enum Constant and Description |
|---|
FLUSH
Flush data to disk (durable).
|
NONE
No flush - fastest, least durable.
|
SYNC
Flush data and metadata to disk (fully durable).
|
| Modifier and Type | Method and Description |
|---|---|
static FileFlushPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileFlushPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileFlushPolicy NONE
public static final FileFlushPolicy FLUSH
public static final FileFlushPolicy SYNC
public static FileFlushPolicy[] values()
for (FileFlushPolicy c : FileFlushPolicy.values()) System.out.println(c);
public static FileFlushPolicy 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 nullCopyright © 2005–2025 Onix Solutions. All rights reserved.