com.liferay.portal.kernel.executor
Interface PortalExecutorManager
- All Known Implementing Classes:
- PortalExecutorManagerImpl
public interface PortalExecutorManager
execute
<T> Future<T> execute(String name,
Callable<T> callable)
execute
<T> T execute(String name,
Callable<T> callable,
long timeout,
TimeUnit timeUnit)
throws ExecutionException,
InterruptedException,
TimeoutException
- Throws:
ExecutionException
InterruptedException
TimeoutException
getPortalExecutor
ThreadPoolExecutor getPortalExecutor(String name)
getPortalExecutor
ThreadPoolExecutor getPortalExecutor(String name,
boolean createIfAbsent)
registerPortalExecutor
ThreadPoolExecutor registerPortalExecutor(String name,
ThreadPoolExecutor threadPoolExecutor)
shutdown
void shutdown()
shutdown
void shutdown(boolean interrupt)
shutdown
void shutdown(String name)
shutdown
void shutdown(String name,
boolean interrupt)