Package com.suse.common.concurrent
Class UnboundedGrowingThreadPoolExecutor.PutBackExecutionHandler
java.lang.Object
com.suse.common.concurrent.UnboundedGrowingThreadPoolExecutor.PutBackExecutionHandler
- All Implemented Interfaces:
RejectedExecutionHandler
- Enclosing class:
- UnboundedGrowingThreadPoolExecutor
private static class UnboundedGrowingThreadPoolExecutor.PutBackExecutionHandler
extends Object
implements RejectedExecutionHandler
Custom handler of the rejection event to make sure the rejected item are put back to the queue
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrejectedExecution(Runnable runnable, ThreadPoolExecutor executor) voidsetExternalHandler(RejectedExecutionHandler externalHandlerIn)
-
Field Details
-
externalHandler
-
-
Constructor Details
-
PutBackExecutionHandler
private PutBackExecutionHandler()
-
-
Method Details
-
rejectedExecution
- Specified by:
rejectedExecutionin interfaceRejectedExecutionHandler
-
setExternalHandler
-