com.liferay.portal.kernel.concurrent
Class CallerRunsPolicy

java.lang.Object
  extended by com.liferay.portal.kernel.concurrent.CallerRunsPolicy
All Implemented Interfaces:
RejectedExecutionHandler

public class CallerRunsPolicy
extends java.lang.Object
implements RejectedExecutionHandler

Implements the same behavior as ThreadPoolExecutor.CallerRunsPolicy.

Author:
Shuyang Zhou
See Also:
ThreadPoolExecutor.CallerRunsPolicy

Constructor Summary
CallerRunsPolicy()
           
 
Method Summary
 void rejectedExecution(java.lang.Runnable runnable, ThreadPoolExecutor threadPoolExecutor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallerRunsPolicy

public CallerRunsPolicy()
Method Detail

rejectedExecution

public void rejectedExecution(java.lang.Runnable runnable,
                              ThreadPoolExecutor threadPoolExecutor)
Specified by:
rejectedExecution in interface RejectedExecutionHandler
See Also:
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution( Runnable, java.util.concurrent.ThreadPoolExecutor)