Enum Class ValueQueue.SyncGenerationPolicy

java.lang.Object
java.lang.Enum<ValueQueue.SyncGenerationPolicy>
org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy
All Implemented Interfaces:
Serializable, Comparable<ValueQueue.SyncGenerationPolicy>, Constable
Enclosing class:
org.apache.hadoop.crypto.key.kms.ValueQueue<E>

public static enum ValueQueue.SyncGenerationPolicy extends Enum<ValueQueue.SyncGenerationPolicy>
Policy to decide how many values to return to client when client asks for "n" values and Queue is empty. This decides how many values to return when client calls "getAtMost"
  • Enum Constant Details

  • Method Details

    • values

      public static ValueQueue.SyncGenerationPolicy[] 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 ValueQueue.SyncGenerationPolicy 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