- All Implemented Interfaces:
public class BlockPolicy extends Object implements RejectedExecutionHandler
A handler for rejected tasks that will have the caller block until space is available. This was stolen from old hibernate search(5.X.X), as it has been removed in HS6. We can probably come up with a better solution though.
Method SummaryModifier and TypeMethodDescription
voidPuts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.
rejectedExecutionpublic void rejectedExecution
(Runnable r, ThreadPoolExecutor e)Puts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.
- Specified by:
r- the runnable task requested to be executed
e- the executor attempting to execute this task