Package org.openjdk.jmh.runner
Enum BenchmarkHandler.ExecutorType
- All Implemented Interfaces:
Serializable
,Comparable<BenchmarkHandler.ExecutorType>
,java.lang.constant.Constable
- Enclosing class:
BenchmarkHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse Executors.newCachedThreadPoolUse Executors.newFixedThreadPoolUse ForkJoinPool.Use ForkJoinPool.commonPool (JDK 8+) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract ExecutorService
createExecutor
(int maxThreads, String prefix) (package private) boolean
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.
-
Enum Constant Details
-
CACHED_TPE
Use Executors.newCachedThreadPool -
FIXED_TPE
Use Executors.newFixedThreadPool -
FJP
Use ForkJoinPool. -
FJP_COMMON
Use ForkJoinPool.commonPool (JDK 8+) -
CUSTOM
-
-
Constructor Details
-
ExecutorType
private ExecutorType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createExecutor
- Throws:
Exception
-
shutdownForbidden
boolean shutdownForbidden()
-