Class Executors.BlockPolicy
java.lang.Object
org.hibernate.search.batchindexing.Executors.BlockPolicy
- All Implemented Interfaces:
RejectedExecutionHandler
- Enclosing class:
Executors
A handler for rejected tasks that will have the caller block until
space is available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPuts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.
-
Constructor Details
-
BlockPolicy
public BlockPolicy()Creates a BlockPolicy.
-
-
Method Details
-
rejectedExecution
Puts the Runnable to the blocking queue, effectively blocking the delegating thread until space is available.- Specified by:
rejectedExecutionin interfaceRejectedExecutionHandler- Parameters:
r- the runnable task requested to be executede- the executor attempting to execute this task
-