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