Class BlockPolicy

  • All Implemented Interfaces:
    RejectedExecutionHandler

    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.