| Enum Constant and Description |
|---|
DEFERRED_SYNC
Writes will be acknowledged after writing to the filesystem
but not yet been persisted to disks.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.EnumSet<WriteFlag> |
NONE
No flag is set, use default behaviour.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.EnumSet<WriteFlag> |
getWriteFlags(int flagValue)
Converts a set of flags from a binary representation.
|
static int |
getWriteFlagsValue(java.util.EnumSet<WriteFlag> flags)
Converts a set of flags from a binary representation.
|
static WriteFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WriteFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteFlag DEFERRED_SYNC
ForceableHandle.force()public static final java.util.EnumSet<WriteFlag> NONE
public static WriteFlag[] values()
for (WriteFlag c : WriteFlag.values()) System.out.println(c);
public static WriteFlag valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static java.util.EnumSet<WriteFlag> getWriteFlags(int flagValue)
flagValue - the binary valuepublic static int getWriteFlagsValue(java.util.EnumSet<WriteFlag> flags)
flags - the flagsCopyright © 2011–2024 The Apache Software Foundation. All rights reserved.