Package org.jboss.weld.executor
Class FixedThreadPoolExecutorServices
java.lang.Object
org.jboss.weld.executor.AbstractExecutorServices
org.jboss.weld.executor.FixedThreadPoolExecutorServices
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service,org.jboss.weld.manager.api.ExecutorServices
Implementation of
ExtendedExecutorServices that uses a fixed thread pool. The size of the underlying thread pool is
determined by executing Runtime.getRuntime().availableProcessors() + 1.- Author:
- Jozef Hartinger
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.weld.manager.api.ExecutorServices
org.jboss.weld.manager.api.ExecutorServices.TaskFactory<T extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintIndicates the maximum number of threads in this thread pool.toString()Methods inherited from class org.jboss.weld.executor.AbstractExecutorServices
checkForExceptions, cleanup, getTimerExecutor, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdown, wrap
-
Constructor Details
-
FixedThreadPoolExecutorServices
public FixedThreadPoolExecutorServices(int threadPoolSize)
-
-
Method Details
-
getTaskExecutor
-
getThreadPoolSize
public int getThreadPoolSize()Description copied from class:AbstractExecutorServicesIndicates the maximum number of threads in this thread pool. If the value is unknown or if the max number of threads is not bounded this method should return -1- Specified by:
getThreadPoolSizein classAbstractExecutorServices
-
toString
-