Package com.github.ambry.replication
Enum FindTokenType
- java.lang.Object
-
- java.lang.Enum<FindTokenType>
-
- com.github.ambry.replication.FindTokenType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FindTokenType>
public enum FindTokenType extends java.lang.Enum<FindTokenType>
The type of replica token
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CloudBased
IndexBased
JournalBased
Uninitialized
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FindTokenType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FindTokenType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Uninitialized
public static final FindTokenType Uninitialized
-
JournalBased
public static final FindTokenType JournalBased
-
IndexBased
public static final FindTokenType IndexBased
-
CloudBased
public static final FindTokenType CloudBased
-
-
Method Detail
-
values
public static FindTokenType[] 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 (FindTokenType c : FindTokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FindTokenType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-