Package org.glassfish.weld.services
Class ExecutorServicesImpl
- java.lang.Object
-
- org.jboss.weld.executor.AbstractExecutorServices
-
- org.glassfish.weld.services.ExecutorServicesImpl
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service
,org.jboss.weld.manager.api.ExecutorServices
public class ExecutorServicesImpl extends org.jboss.weld.executor.AbstractExecutorServices implements org.jboss.weld.manager.api.ExecutorServices
Implementation of the Weld Executor Services SPI which uses the Payara Executor Service for its- Author:
- steve
-
-
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 Constructor Description ExecutorServicesImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup()
ExecutorService
getTaskExecutor()
protected int
getThreadPoolSize()
ScheduledExecutorService
getTimerExecutor()
<T> Collection<? extends Callable<T>>
wrap(Collection<? extends Callable<T>> tasks)
-
Methods inherited from class org.jboss.weld.executor.AbstractExecutorServices
checkForExceptions, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptions, shutdown
-
-
-
-
Constructor Detail
-
ExecutorServicesImpl
public ExecutorServicesImpl() throws NamingException
- Throws:
NamingException
-
-
Method Detail
-
getTaskExecutor
public ExecutorService getTaskExecutor()
- Specified by:
getTaskExecutor
in interfaceorg.jboss.weld.manager.api.ExecutorServices
-
getTimerExecutor
public ScheduledExecutorService getTimerExecutor()
- Specified by:
getTimerExecutor
in interfaceorg.jboss.weld.manager.api.ExecutorServices
- Overrides:
getTimerExecutor
in classorg.jboss.weld.executor.AbstractExecutorServices
-
cleanup
public void cleanup()
- Specified by:
cleanup
in interfaceorg.jboss.weld.bootstrap.api.Service
- Overrides:
cleanup
in classorg.jboss.weld.executor.AbstractExecutorServices
-
getThreadPoolSize
protected int getThreadPoolSize()
- Specified by:
getThreadPoolSize
in classorg.jboss.weld.executor.AbstractExecutorServices
-
wrap
public <T> Collection<? extends Callable<T>> wrap(Collection<? extends Callable<T>> tasks)
- Overrides:
wrap
in classorg.jboss.weld.executor.AbstractExecutorServices
-
-