com.liferay.portal.executor
Class PortalExecutorManagerImpl
java.lang.Object
com.liferay.portal.executor.PortalExecutorManagerImpl
- All Implemented Interfaces:
- PortalExecutorManager
public class PortalExecutorManagerImpl
- extends Object
- implements PortalExecutorManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortalExecutorManagerImpl
public PortalExecutorManagerImpl()
afterPropertiesSet
public void afterPropertiesSet()
execute
public <T> Future<T> execute(String name,
Callable<T> callable)
- Specified by:
execute
in interface PortalExecutorManager
execute
public <T> T execute(String name,
Callable<T> callable,
long timeout,
TimeUnit timeUnit)
throws ExecutionException,
InterruptedException,
TimeoutException
- Specified by:
execute
in interface PortalExecutorManager
- Throws:
ExecutionException
InterruptedException
TimeoutException
getPortalExecutor
public ThreadPoolExecutor getPortalExecutor(String name)
- Specified by:
getPortalExecutor
in interface PortalExecutorManager
getPortalExecutor
public ThreadPoolExecutor getPortalExecutor(String name,
boolean createIfAbsent)
- Specified by:
getPortalExecutor
in interface PortalExecutorManager
registerPortalExecutor
public ThreadPoolExecutor registerPortalExecutor(String name,
ThreadPoolExecutor threadPoolExecutor)
- Specified by:
registerPortalExecutor
in interface PortalExecutorManager
setPortalExecutorFactory
public void setPortalExecutorFactory(PortalExecutorFactory portalExecutorFactory)
setPortalExecutors
public void setPortalExecutors(Map<String,ThreadPoolExecutor> threadPoolExecutors)
shutdown
public void shutdown()
- Specified by:
shutdown
in interface PortalExecutorManager
shutdown
public void shutdown(boolean interrupt)
- Specified by:
shutdown
in interface PortalExecutorManager
shutdown
public void shutdown(String name)
- Specified by:
shutdown
in interface PortalExecutorManager
shutdown
public void shutdown(String name,
boolean interrupt)
- Specified by:
shutdown
in interface PortalExecutorManager