Package org.apache.bookkeeper.client.api
Enum Class WriteFlag
- All Implemented Interfaces:
Serializable,Comparable<WriteFlag>,Constable
Flags to specify the behaviour of writes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWrites will be acknowledged after writing to the filesystem but not yet been persisted to disks. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()getWriteFlags(int flagValue) Converts a set of flags from a binary representation.static intgetWriteFlagsValue(EnumSet<WriteFlag> flags) Converts a set of flags from a binary representation.static WriteFlagReturns the enum constant of this class with the specified name.static WriteFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFERRED_SYNC
Writes will be acknowledged after writing to the filesystem but not yet been persisted to disks.- See Also:
-
-
Field Details
-
NONE
No flag is set, use default behaviour.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getWriteFlags
Converts a set of flags from a binary representation.- Parameters:
flagValue- the binary value- Returns:
- a set of flags
-
getWriteFlagsValue
Converts a set of flags from a binary representation.- Parameters:
flags- the flags- Returns:
- the binary representation
-
getValue
public int getValue()
-