Package emissary.grpc.pool
Enum PoolRetrievalOrdering
- java.lang.Object
-
- java.lang.Enum<PoolRetrievalOrdering>
-
- emissary.grpc.pool.PoolRetrievalOrdering
-
- All Implemented Interfaces:
Serializable,Comparable<PoolRetrievalOrdering>
public enum PoolRetrievalOrdering extends Enum<PoolRetrievalOrdering>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PoolRetrievalOrderinggetOrder(String input, PoolRetrievalOrdering defaultOrdering)static booleanisFifo(String order, PoolRetrievalOrdering defaultOrdering)static booleanisLifo(String order, PoolRetrievalOrdering defaultOrdering)static PoolRetrievalOrderingvalueOf(String name)Returns the enum constant of this type with the specified name.static PoolRetrievalOrdering[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIFO
public static final PoolRetrievalOrdering LIFO
-
FIFO
public static final PoolRetrievalOrdering FIFO
-
-
Method Detail
-
values
public static PoolRetrievalOrdering[] 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 (PoolRetrievalOrdering c : PoolRetrievalOrdering.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PoolRetrievalOrdering 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 nameNullPointerException- if the argument is null
-
getOrder
public static PoolRetrievalOrdering getOrder(String input, PoolRetrievalOrdering defaultOrdering)
-
isLifo
public static boolean isLifo(String order, PoolRetrievalOrdering defaultOrdering)
-
isFifo
public static boolean isFifo(String order, PoolRetrievalOrdering defaultOrdering)
-
-