Package alluxio.concurrent
Class ForkJoinPoolHelper
- java.lang.Object
-
- alluxio.concurrent.ForkJoinPoolHelper
-
public class ForkJoinPoolHelper extends java.lang.Object
Provides helpers for working withForkJoinPool
.
-
-
Constructor Summary
Constructors Constructor Description ForkJoinPoolHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
safeManagedBlock(ForkJoinPool.ManagedBlocker blocker)
Does managed blocking on ForkJoinPool.
-
-
-
Method Detail
-
safeManagedBlock
public static void safeManagedBlock(ForkJoinPool.ManagedBlocker blocker) throws java.lang.InterruptedException
Does managed blocking on ForkJoinPool. This helper is guaranteed to block even when ForkJoinPool is running on full capacity.- Parameters:
blocker
- managed blocker resource- Throws:
java.lang.InterruptedException
-
-