com.liferay.portal.executor
Class PortalExecutorManagerImpl

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

public class PortalExecutorManagerImpl
extends java.lang.Object
implements com.liferay.portal.kernel.executor.PortalExecutorManager

Author:
Shuyang Zhou

Constructor Summary
PortalExecutorManagerImpl()
           
 
Method Summary
 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)
           
 void setPortalExecutorFactory(com.liferay.portal.kernel.executor.PortalExecutorFactory portalExecutorFactory)
           
 void setPortalExecutors(java.util.Map<java.lang.String,com.liferay.portal.kernel.concurrent.ThreadPoolExecutor> portalExecutors)
           
 void shutdown()
           
 void shutdown(boolean interrupt)
           
 void shutdown(java.lang.String name)
           
 void shutdown(java.lang.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> java.util.concurrent.Future<T> execute(java.lang.String name,
                                                  java.util.concurrent.Callable<T> callable)
Specified by:
execute in interface com.liferay.portal.kernel.executor.PortalExecutorManager

execute

public <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
Specified by:
execute in interface com.liferay.portal.kernel.executor.PortalExecutorManager
Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.util.concurrent.TimeoutException

getPortalExecutor

public com.liferay.portal.kernel.concurrent.ThreadPoolExecutor getPortalExecutor(java.lang.String name)
Specified by:
getPortalExecutor in interface com.liferay.portal.kernel.executor.PortalExecutorManager

getPortalExecutor

public com.liferay.portal.kernel.concurrent.ThreadPoolExecutor getPortalExecutor(java.lang.String name,
                                                                                 boolean createIfAbsent)
Specified by:
getPortalExecutor in interface com.liferay.portal.kernel.executor.PortalExecutorManager

setPortalExecutorFactory

public void setPortalExecutorFactory(com.liferay.portal.kernel.executor.PortalExecutorFactory portalExecutorFactory)

setPortalExecutors

public void setPortalExecutors(java.util.Map<java.lang.String,com.liferay.portal.kernel.concurrent.ThreadPoolExecutor> portalExecutors)

shutdown

public void shutdown()
Specified by:
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManager

shutdown

public void shutdown(boolean interrupt)
Specified by:
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManager

shutdown

public void shutdown(java.lang.String name)
Specified by:
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManager

shutdown

public void shutdown(java.lang.String name,
                     boolean interrupt)
Specified by:
shutdown in interface com.liferay.portal.kernel.executor.PortalExecutorManager