public enum ThreadPoolExecutorQueueType extends Enum<ThreadPoolExecutorQueueType>
Enum Constant and Description |
---|
ARRAY_BLOCKING_QUEUE
|
LINKED_BLOCKING_QUEUE |
LINKED_BLOCKING_QUEUE_WITH_CAP
|
SYNCHRONOUS_BLOCKING_QUEUE
|
Modifier and Type | Method and Description |
---|---|
static ThreadPoolExecutorQueueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadPoolExecutorQueueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadPoolExecutorQueueType LINKED_BLOCKING_QUEUE
public static final ThreadPoolExecutorQueueType LINKED_BLOCKING_QUEUE_WITH_CAP
public static final ThreadPoolExecutorQueueType ARRAY_BLOCKING_QUEUE
public static final ThreadPoolExecutorQueueType SYNCHRONOUS_BLOCKING_QUEUE
public static ThreadPoolExecutorQueueType[] values()
for (ThreadPoolExecutorQueueType c : ThreadPoolExecutorQueueType.values()) System.out.println(c);
public static ThreadPoolExecutorQueueType 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 nullCopyright © 2023. All Rights Reserved.