static enum SingleThreadExecutor.State extends java.lang.Enum<SingleThreadExecutor.State>
| Enum Constant and Description |
|---|
Running |
Shutdown |
Terminated |
| Modifier and Type | Method and Description |
|---|---|
static SingleThreadExecutor.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SingleThreadExecutor.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SingleThreadExecutor.State Running
public static final SingleThreadExecutor.State Shutdown
public static final SingleThreadExecutor.State Terminated
public static SingleThreadExecutor.State[] values()
for (SingleThreadExecutor.State c : SingleThreadExecutor.State.values()) System.out.println(c);
public static SingleThreadExecutor.State valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.