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