public class PortalExecutorManagerImpl
extends java.lang.Object
implements com.liferay.portal.kernel.executor.PortalExecutorManager
| Constructor and Description |
|---|
PortalExecutorManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
<T> java.util.concurrent.Future<T> |
execute(java.lang.String name,
java.util.concurrent.Callable<T> callable) |
<T> T |
execute(java.lang.String name,
java.util.concurrent.Callable<T> callable,
long timeout,
java.util.concurrent.TimeUnit timeUnit) |
com.liferay.portal.kernel.concurrent.ThreadPoolExecutor |
getPortalExecutor(java.lang.String name) |
com.liferay.portal.kernel.concurrent.ThreadPoolExecutor |
getPortalExecutor(java.lang.String name,
boolean createIfAbsent) |
com.liferay.portal.kernel.concurrent.ThreadPoolExecutor |
registerPortalExecutor(java.lang.String name,
com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor) |
void |
setPortalExecutorFactory(com.liferay.portal.kernel.executor.PortalExecutorFactory portalExecutorFactory) |
void |
setPortalExecutors(java.util.Map<java.lang.String,com.liferay.portal.kernel.concurrent.ThreadPoolExecutor> threadPoolExecutors) |
void |
shutdown() |
void |
shutdown(boolean interrupt) |
void |
shutdown(java.lang.String name) |
void |
shutdown(java.lang.String name,
boolean interrupt) |
public void afterPropertiesSet()
public <T> java.util.concurrent.Future<T> execute(java.lang.String name,
java.util.concurrent.Callable<T> callable)
execute in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic <T> T execute(java.lang.String name,
java.util.concurrent.Callable<T> callable,
long timeout,
java.util.concurrent.TimeUnit timeUnit)
throws java.util.concurrent.ExecutionException,
java.lang.InterruptedException,
java.util.concurrent.TimeoutException
execute in interface com.liferay.portal.kernel.executor.PortalExecutorManagerjava.util.concurrent.ExecutionExceptionjava.lang.InterruptedExceptionjava.util.concurrent.TimeoutExceptionpublic com.liferay.portal.kernel.concurrent.ThreadPoolExecutor getPortalExecutor(java.lang.String name)
getPortalExecutor in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic com.liferay.portal.kernel.concurrent.ThreadPoolExecutor getPortalExecutor(java.lang.String name,
boolean createIfAbsent)
getPortalExecutor in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic com.liferay.portal.kernel.concurrent.ThreadPoolExecutor registerPortalExecutor(java.lang.String name,
com.liferay.portal.kernel.concurrent.ThreadPoolExecutor threadPoolExecutor)
registerPortalExecutor in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic void setPortalExecutorFactory(com.liferay.portal.kernel.executor.PortalExecutorFactory portalExecutorFactory)
public void setPortalExecutors(java.util.Map<java.lang.String,com.liferay.portal.kernel.concurrent.ThreadPoolExecutor> threadPoolExecutors)
public void shutdown()
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic void shutdown(boolean interrupt)
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic void shutdown(java.lang.String name)
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManagerpublic void shutdown(java.lang.String name,
boolean interrupt)
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManager