Liferay 6.1.2-ce-ga3

com.liferay.portal.executor
Class PortalExecutorManagerImpl

java.lang.Object
  extended by com.liferay.portal.executor.PortalExecutorManagerImpl
All Implemented Interfaces:
PortalExecutorManager

public class PortalExecutorManagerImpl
extends Object
implements PortalExecutorManager


Constructor Summary
PortalExecutorManagerImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
<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 setPortalExecutorFactory(PortalExecutorFactory portalExecutorFactory)
           
 void setPortalExecutors(Map<String,ThreadPoolExecutor> threadPoolExecutors)
           
 void shutdown()
           
 void shutdown(boolean interrupt)
           
 void shutdown(String name)
           
 void shutdown(String name, boolean interrupt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalExecutorManagerImpl

public PortalExecutorManagerImpl()
Method Detail

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

Liferay 6.1.2-ce-ga3