Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.executor
Interface PortalExecutorManager


public interface PortalExecutorManager


Method Summary
<T> Future<T>
execute(String name, Callable<T> callable)
           
<T> T
execute(String name, Callable<T> callable, long timeout, TimeUnit timeUnit)
           
 ThreadPoolExecutor getPortalExecutor(String name)
           
 ThreadPoolExecutor getPortalExecutor(String name, boolean createIfAbsent)
           
 ThreadPoolExecutor registerPortalExecutor(String name, ThreadPoolExecutor threadPoolExecutor)
           
 void shutdown()
           
 void shutdown(boolean interrupt)
           
 void shutdown(String name)
           
 void shutdown(String name, boolean interrupt)
           
 

Method Detail

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)

Liferay 6.1.2-ce-ga3