public enum CachedThreadPoolExecutorFactory extends Enum<CachedThreadPoolExecutorFactory> implements ThreadPoolExecutorFactory<ExecutorService>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static CachedThreadPoolExecutorFactory |
create() |
ExecutorService |
createExecutor(ThreadFactory factory) |
void |
validate()
Validate parameters for the thread pool executor factory
|
static CachedThreadPoolExecutorFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CachedThreadPoolExecutorFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CachedThreadPoolExecutorFactory INSTANCE
public static CachedThreadPoolExecutorFactory[] values()
for (CachedThreadPoolExecutorFactory c : CachedThreadPoolExecutorFactory.values()) System.out.println(c);
public static CachedThreadPoolExecutorFactory 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 ExecutorService createExecutor(ThreadFactory factory)
createExecutor in interface ThreadPoolExecutorFactory<ExecutorService>public void validate()
ThreadPoolExecutorFactoryvalidate in interface ThreadPoolExecutorFactory<ExecutorService>public static CachedThreadPoolExecutorFactory create()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.