private static enum BenchmarkHandler.ExecutorType extends java.lang.Enum<BenchmarkHandler.ExecutorType>
Enum Constant and Description |
---|
CACHED_TPE
Use Executors.newCachedThreadPool
|
CUSTOM |
FIXED_TPE
Use Executors.newFixedThreadPool
|
FJP
Use new ForkJoinPool (JDK 7+)
|
FJP_COMMON
Use ForkJoinPool.commonPool (JDK 8+)
|
Modifier and Type | Method and Description |
---|---|
(package private) abstract java.util.concurrent.ExecutorService |
createExecutor(int maxThreads,
java.lang.String prefix) |
(package private) boolean |
shutdownForbidden() |
static BenchmarkHandler.ExecutorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BenchmarkHandler.ExecutorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BenchmarkHandler.ExecutorType CACHED_TPE
public static final BenchmarkHandler.ExecutorType FIXED_TPE
public static final BenchmarkHandler.ExecutorType FJP
public static final BenchmarkHandler.ExecutorType FJP_COMMON
public static final BenchmarkHandler.ExecutorType CUSTOM
public static BenchmarkHandler.ExecutorType[] values()
for (BenchmarkHandler.ExecutorType c : BenchmarkHandler.ExecutorType.values()) System.out.println(c);
public static BenchmarkHandler.ExecutorType 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 nullabstract java.util.concurrent.ExecutorService createExecutor(int maxThreads, java.lang.String prefix) throws java.lang.Exception
java.lang.Exception
boolean shutdownForbidden()