Class NonBlockingRejectedExecutionHandler
java.lang.Object
org.infinispan.commons.util.concurrent.NonBlockingRejectedExecutionHandler
- All Implemented Interfaces:
RejectedExecutionHandler
A handler for rejected tasks that runs the task if the current thread is a non blocking thread otherwise it
blocks until the task can be added to the underlying queue
- Since:
- 10.1
- Author:
- wburns
-
Method Summary
Modifier and TypeMethodDescriptionstatic RejectedExecutionHandler
void
rejectedExecution
(Runnable r, ThreadPoolExecutor executor)
-
Method Details
-
getInstance
-
rejectedExecution
- Specified by:
rejectedExecution
in interfaceRejectedExecutionHandler
-