Enum Class ClosingFuture.State
- All Implemented Interfaces:
Serializable,Comparable<ClosingFuture.State>,Constable
- Enclosing class:
ClosingFuture<V>
The state of a
ClosingFuture.CloseableList.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTheClosingFuture.CloseableListhas been closed.The callback that closes theClosingFuture.CloseableListis running, but it has not completed.TheClosingFuture.CloseableListhas not been subsumed or closed.TheClosingFuture.CloseableListhas been subsumed into another.SomeListenableFuturehas a callback attached that will close theClosingFuture.CloseableList, but it has not yet run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClosingFuture.StateReturns the enum constant of this class with the specified name.static ClosingFuture.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
TheClosingFuture.CloseableListhas not been subsumed or closed. -
SUBSUMED
TheClosingFuture.CloseableListhas been subsumed into another. It may not be closed or subsumed into any other. -
WILL_CLOSE
SomeListenableFuturehas a callback attached that will close theClosingFuture.CloseableList, but it has not yet run. TheClosingFuture.CloseableListmay not be subsumed. -
CLOSING
The callback that closes theClosingFuture.CloseableListis running, but it has not completed. TheClosingFuture.CloseableListmay not be subsumed. -
CLOSED
TheClosingFuture.CloseableListhas been closed. It may not be further subsumed. -
WILL_CREATE_VALUE_AND_CLOSER
ClosingFuture.finishToValueAndCloser(ValueAndCloserConsumer, Executor)has been called. The step may not be further subsumed, nor mayClosingFuture.finishToFuture()be called.
-
-
Constructor Details
-
State
private State()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-