public enum CachedThreadPoolExecutorFactory extends java.lang.Enum<CachedThreadPoolExecutorFactory> implements ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static CachedThreadPoolExecutorFactory |
create() |
java.util.concurrent.ExecutorService |
createExecutor(java.util.concurrent.ThreadFactory factory) |
void |
validate()
Validate parameters for the thread pool executor factory
|
static CachedThreadPoolExecutorFactory |
valueOf(java.lang.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(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 nullpublic java.util.concurrent.ExecutorService createExecutor(java.util.concurrent.ThreadFactory factory)
createExecutor in interface ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>public void validate()
ThreadPoolExecutorFactoryvalidate in interface ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>public static CachedThreadPoolExecutorFactory create()