public enum VanillaExecutorFactory extends Enum<VanillaExecutorFactory> implements ExecutorFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
acquireExecutorService(String name,
int threads,
boolean daemon) |
ScheduledExecutorService |
acquireScheduledExecutorService(String name,
boolean daemon) |
static VanillaExecutorFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VanillaExecutorFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VanillaExecutorFactory INSTANCE
public static VanillaExecutorFactory[] values()
for (VanillaExecutorFactory c : VanillaExecutorFactory.values()) System.out.println(c);
public static VanillaExecutorFactory 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 acquireExecutorService(String name, int threads, boolean daemon)
acquireExecutorService in interface ExecutorFactorypublic ScheduledExecutorService acquireScheduledExecutorService(String name, boolean daemon)
acquireScheduledExecutorService in interface ExecutorFactoryCopyright © 2021. All rights reserved.