org.apache.hadoop.crypto.key.kms
Enum ValueQueue.SyncGenerationPolicy

java.lang.Object
  extended by java.lang.Enum<ValueQueue.SyncGenerationPolicy>
      extended by org.apache.hadoop.crypto.key.kms.ValueQueue.SyncGenerationPolicy
All Implemented Interfaces:
Serializable, Comparable<ValueQueue.SyncGenerationPolicy>
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 Summary
ALL
           
ATLEAST_ONE
           
LOW_WATERMARK
           
 
Method Summary
static ValueQueue.SyncGenerationPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValueQueue.SyncGenerationPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ATLEAST_ONE

public static final ValueQueue.SyncGenerationPolicy ATLEAST_ONE

LOW_WATERMARK

public static final ValueQueue.SyncGenerationPolicy LOW_WATERMARK

ALL

public static final ValueQueue.SyncGenerationPolicy ALL
Method Detail

values

public static ValueQueue.SyncGenerationPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ValueQueue.SyncGenerationPolicy c : ValueQueue.SyncGenerationPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ValueQueue.SyncGenerationPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2014 Apache Software Foundation. All Rights Reserved.