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 CLOSEDTheClosingFuture.CloseableListhas been closed.CLOSINGThe callback that closes theClosingFuture.CloseableListis running, but it has not completed.OPENTheClosingFuture.CloseableListhas not been subsumed or closed.SUBSUMEDTheClosingFuture.CloseableListhas been subsumed into another.WILL_CLOSESomeListenableFuturehas 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 privateState()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClosingFuture.StatevalueOf(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.CloseableListhas not been subsumed or closed.
-
SUBSUMED
public static final ClosingFuture.State SUBSUMED
TheClosingFuture.CloseableListhas been subsumed into another. It may not be closed or subsumed into any other.
-
WILL_CLOSE
public static final ClosingFuture.State WILL_CLOSE
SomeListenableFuturehas a callback attached that will close theClosingFuture.CloseableList, but it has not yet run. TheClosingFuture.CloseableListmay not be subsumed.
-
CLOSING
public static final ClosingFuture.State CLOSING
The callback that closes theClosingFuture.CloseableListis running, but it has not completed. TheClosingFuture.CloseableListmay not be subsumed.
-
CLOSED
public static final ClosingFuture.State CLOSED
TheClosingFuture.CloseableListhas 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
-
-