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.CloseableList
has been closed.The callback that closes theClosingFuture.CloseableList
is running, but it has not completed.TheClosingFuture.CloseableList
has not been subsumed or closed.TheClosingFuture.CloseableList
has been subsumed into another.SomeListenableFuture
has a callback attached that will close theClosingFuture.CloseableList
, but it has not yet run. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClosingFuture.State
Returns 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.CloseableList
has not been subsumed or closed. -
SUBSUMED
TheClosingFuture.CloseableList
has been subsumed into another. It may not be closed or subsumed into any other. -
WILL_CLOSE
SomeListenableFuture
has a callback attached that will close theClosingFuture.CloseableList
, but it has not yet run. TheClosingFuture.CloseableList
may not be subsumed. -
CLOSING
The callback that closes theClosingFuture.CloseableList
is running, but it has not completed. TheClosingFuture.CloseableList
may not be subsumed. -
CLOSED
TheClosingFuture.CloseableList
has 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
-