Package org.infinispan.commons.executors
Class BlockingThreadPoolExecutorFactory
java.lang.Object
org.infinispan.commons.executors.BlockingThreadPoolExecutorFactory
- All Implemented Interfaces:
ThreadPoolExecutorFactory<ExecutorService>
@Deprecated(forRemoval=true)
public class BlockingThreadPoolExecutorFactory
extends Object
implements ThreadPoolExecutorFactory<ExecutorService>
Deprecated, for removal: This API element is subject to removal in a future version.
since 12.0 with no replacement
- Author:
- Galder ZamarreƱo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionBlockingThreadPoolExecutorFactory
(int maxThreads, int coreThreads, int queueLength, long keepAlive) Deprecated, for removal: This API element is subject to removal in a future version.BlockingThreadPoolExecutorFactory
(int maxThreads, int coreThreads, int queueLength, long keepAlive, boolean nonBlocking) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.create
(int maxThreads, int queueSize, boolean nonBlocking) Deprecated, for removal: This API element is subject to removal in a future version.createExecutor
(ThreadFactory threadFactory) Deprecated, for removal: This API element is subject to removal in a future version.boolean
Deprecated, for removal: This API element is subject to removal in a future version.long
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.toString()
Deprecated, for removal: This API element is subject to removal in a future version.void
validate()
Deprecated, for removal: This API element is subject to removal in a future version.Validate parameters for the thread pool executor factory
-
Field Details
-
DEFAULT_KEEP_ALIVE_MILLIS
public static final int DEFAULT_KEEP_ALIVE_MILLISDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
BlockingThreadPoolExecutorFactory
public BlockingThreadPoolExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive) Deprecated, for removal: This API element is subject to removal in a future version. -
BlockingThreadPoolExecutorFactory
public BlockingThreadPoolExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive, boolean nonBlocking) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
maxThreads
public int maxThreads()Deprecated, for removal: This API element is subject to removal in a future version. -
coreThreads
public int coreThreads()Deprecated, for removal: This API element is subject to removal in a future version. -
queueLength
public int queueLength()Deprecated, for removal: This API element is subject to removal in a future version. -
keepAlive
public long keepAlive()Deprecated, for removal: This API element is subject to removal in a future version. -
createsNonBlockingThreads
public boolean createsNonBlockingThreads()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createsNonBlockingThreads
in interfaceThreadPoolExecutorFactory<ExecutorService>
-
createExecutor
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
createExecutor
in interfaceThreadPoolExecutorFactory<ExecutorService>
-
validate
public void validate()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ThreadPoolExecutorFactory
Validate parameters for the thread pool executor factory- Specified by:
validate
in interfaceThreadPoolExecutorFactory<ExecutorService>
-
toString
Deprecated, for removal: This API element is subject to removal in a future version. -
create
public static BlockingThreadPoolExecutorFactory create(int maxThreads, int queueSize, boolean nonBlocking) Deprecated, for removal: This API element is subject to removal in a future version.
-