Package org.infinispan.commons.executors
Enum CachedThreadPoolExecutorFactory
- java.lang.Object
-
- java.lang.Enum<CachedThreadPoolExecutorFactory>
-
- org.infinispan.commons.executors.CachedThreadPoolExecutorFactory
-
- All Implemented Interfaces:
Serializable
,Comparable<CachedThreadPoolExecutorFactory>
,ThreadPoolExecutorFactory<ExecutorService>
public enum CachedThreadPoolExecutorFactory extends Enum<CachedThreadPoolExecutorFactory> implements ThreadPoolExecutorFactory<ExecutorService>
- Author:
- Galder ZamarreƱo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachedThreadPoolExecutorFactory
create()
ExecutorService
createExecutor(ThreadFactory factory)
void
validate()
Validate parameters for the thread pool executor factorystatic CachedThreadPoolExecutorFactory
valueOf(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.-
Methods inherited from interface org.infinispan.commons.executors.ThreadPoolExecutorFactory
createsNonBlockingThreads
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final CachedThreadPoolExecutorFactory INSTANCE
-
-
Method Detail
-
values
public static CachedThreadPoolExecutorFactory[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CachedThreadPoolExecutorFactory c : CachedThreadPoolExecutorFactory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CachedThreadPoolExecutorFactory valueOf(String name)
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
public ExecutorService createExecutor(ThreadFactory factory)
- Specified by:
createExecutor
in interfaceThreadPoolExecutorFactory<ExecutorService>
-
validate
public void validate()
Description copied from interface:ThreadPoolExecutorFactory
Validate parameters for the thread pool executor factory- Specified by:
validate
in interfaceThreadPoolExecutorFactory<ExecutorService>
-
create
public static CachedThreadPoolExecutorFactory create()
-
-