Package org.jboss.weld.executor
Class SingleThreadExecutorServices
java.lang.Object
org.jboss.weld.executor.AbstractExecutorServices
org.jboss.weld.executor.SingleThreadExecutorServices
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service,org.jboss.weld.manager.api.ExecutorServices
- Author:
- pmuir
-
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 TypeMethodDescriptionProvides access to the executor service used for asynchronous tasks.protected intIndicates the maximum number of threads in this thread pool.Methods inherited from class org.jboss.weld.executor.AbstractExecutorServices
checkForExceptions, cleanup, getTimerExecutor, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdown, wrap
-
Constructor Details
-
SingleThreadExecutorServices
public SingleThreadExecutorServices()
-
-
Method Details
-
getTaskExecutor
Provides access to the executor service used for asynchronous tasks.- Returns:
- the ExecutorService for this manager
-
getThreadPoolSize
protected 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
-