com.liferay.portal.kernel.concurrent
Class CallerRunsPolicy
java.lang.Object
com.liferay.portal.kernel.concurrent.CallerRunsPolicy
- All Implemented Interfaces:
- RejectedExecutionHandler
public class CallerRunsPolicy
- extends Object
- implements RejectedExecutionHandler
Implements the same behavior as ThreadPoolExecutor.CallerRunsPolicy
.
- See Also:
ThreadPoolExecutor.CallerRunsPolicy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CallerRunsPolicy
public CallerRunsPolicy()
rejectedExecution
public void rejectedExecution(Runnable runnable,
ThreadPoolExecutor threadPoolExecutor)
- Specified by:
rejectedExecution
in interface RejectedExecutionHandler
- See Also:
ThreadPoolExecutor.CallerRunsPolicy.rejectedExecution(
Runnable, java.util.concurrent.ThreadPoolExecutor)