public static enum WorkQueue.QueueState extends Enum<WorkQueue.QueueState>
| Enum Constant and Description |
|---|
ACTIVE |
SHUTDOWN |
TERMINATED |
TERMINATING |
| Modifier and Type | Method and Description |
|---|---|
static WorkQueue.QueueState |
get(ThreadPoolExecutor executor) |
static WorkQueue.QueueState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkQueue.QueueState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkQueue.QueueState ACTIVE
public static final WorkQueue.QueueState SHUTDOWN
public static final WorkQueue.QueueState TERMINATING
public static final WorkQueue.QueueState TERMINATED
public static WorkQueue.QueueState[] values()
for (WorkQueue.QueueState c : WorkQueue.QueueState.values()) System.out.println(c);
public static WorkQueue.QueueState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static WorkQueue.QueueState get(ThreadPoolExecutor executor)
Copyright © 2007–2017 Andreas Bartels. All rights reserved.