ForkJoinPool.ManagedBlocker
Interface ForkJoinPool.ManagedBlocker
- Enclosing class:
- ForkJoinPool
public static interface ForkJoinPool.ManagedBlocker
Interface for extending managed parallelism for tasks running in ForkJoinPool
s.
A ManagedBlocker
provides two methods. Method isReleasable()
must return true
if blocking is not necessary. Method block()
blocks the current thread if necessary (perhaps internally invoking isReleasable
before actually blocking). These actions are performed by any thread invo