Class ResourceReindexingSvcImpl.BlockPolicy

java.lang.Object
ca.uhn.fhir.jpa.search.reindex.ResourceReindexingSvcImpl.BlockPolicy
All Implemented Interfaces:
RejectedExecutionHandler
Enclosing class:
ResourceReindexingSvcImpl

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.