Class DiscardWithCancelPolicy
Object
com.liferay.portal.layoutconfiguration.util.DiscardWithCancelPolicy
- All Implemented Interfaces:
RejectedExecutionHandler
- Author:
- Shuyang Zhou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
rejectedExecution
(Runnable runnable, ThreadPoolExecutor threadPoolExecutor) Rejects execution of theRunnable
task by canceling it immediately.
-
Constructor Details
-
DiscardWithCancelPolicy
public DiscardWithCancelPolicy()
-
-
Method Details
-
rejectedExecution
Rejects execution of theRunnable
task by canceling it immediately.Important: The task can only be canceled if it is a subtype of
Future
.- Specified by:
rejectedExecution
in interfaceRejectedExecutionHandler
- Parameters:
runnable
- the taskthreadPoolExecutor
- the executor
-