- All Implemented Interfaces:
- Enclosing class:
public static class ResourceReindexingSvcImpl.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.
Constructors Constructor Description
rejectedExecutionPuts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.