Enum Class WriteFlag

java.lang.Object
java.lang.Enum<WriteFlag>
org.apache.bookkeeper.client.api.WriteFlag
All Implemented Interfaces:
Serializable, Comparable<WriteFlag>, Constable

public enum WriteFlag extends Enum<WriteFlag>
Flags to specify the behaviour of writes.
  • Enum Constant Details

    • DEFERRED_SYNC

      public static final WriteFlag DEFERRED_SYNC
      Writes will be acknowledged after writing to the filesystem but not yet been persisted to disks.
      See Also:
  • Field Details

    • NONE

      public static final EnumSet<WriteFlag> NONE
      No flag is set, use default behaviour.
  • Method Details

    • values

      public static WriteFlag[] 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

      public static WriteFlag valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getWriteFlags

      public static EnumSet<WriteFlag> getWriteFlags(int flagValue)
      Converts a set of flags from a binary representation.
      Parameters:
      flagValue - the binary value
      Returns:
      a set of flags
    • getWriteFlagsValue

      public static int getWriteFlagsValue(EnumSet<WriteFlag> flags)
      Converts a set of flags from a binary representation.
      Parameters:
      flags - the flags
      Returns:
      the binary representation
    • getValue

      public int getValue()