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