Enum ClosingFuture.State
- java.lang.Object
-
- java.lang.Enum<ClosingFuture.State>
-
- com.google.common.util.concurrent.ClosingFuture.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClosingFuture.State>
- Enclosing class:
- ClosingFuture<V>
static enum ClosingFuture.State extends java.lang.Enum<ClosingFuture.State>
The state of aClosingFuture.CloseableList
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
TheClosingFuture.CloseableList
has been closed.CLOSING
The callback that closes theClosingFuture.CloseableList
is running, but it has not completed.OPEN
TheClosingFuture.CloseableList
has not been subsumed or closed.SUBSUMED
TheClosingFuture.CloseableList
has been subsumed into another.WILL_CLOSE
SomeListenableFuture
has a callback attached that will close theClosingFuture.CloseableList
, but it has not yet run.WILL_CREATE_VALUE_AND_CLOSER
-
Constructor Summary
Constructors Modifier Constructor Description private
State()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClosingFuture.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClosingFuture.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN
public static final ClosingFuture.State OPEN
TheClosingFuture.CloseableList
has not been subsumed or closed.
-
SUBSUMED
public static final ClosingFuture.State SUBSUMED
TheClosingFuture.CloseableList
has been subsumed into another. It may not be closed or subsumed into any other.
-
WILL_CLOSE
public static final ClosingFuture.State 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
public static final ClosingFuture.State CLOSING
The callback that closes theClosingFuture.CloseableList
is running, but it has not completed. TheClosingFuture.CloseableList
may not be subsumed.
-
CLOSED
public static final ClosingFuture.State CLOSED
TheClosingFuture.CloseableList
has been closed. It may not be further subsumed.
-
WILL_CREATE_VALUE_AND_CLOSER
public static final ClosingFuture.State WILL_CREATE_VALUE_AND_CLOSER
ClosingFuture.finishToValueAndCloser(ValueAndCloserConsumer, Executor)
has been called. The step may not be further subsumed, nor mayClosingFuture.finishToFuture()
be called.
-
-
Method Detail
-
values
public static ClosingFuture.State[] 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 (ClosingFuture.State c : ClosingFuture.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClosingFuture.State 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
-
-