Package org.openrewrite.scheduling
Class ForkJoinScheduler
- java.lang.Object
-
- org.openrewrite.scheduling.ForkJoinScheduler
-
- All Implemented Interfaces:
RecipeScheduler
public class ForkJoinScheduler extends java.lang.Object implements RecipeScheduler
-
-
Constructor Summary
Constructors Constructor Description ForkJoinScheduler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ForkJoinSchedulercommon()java.util.concurrent.ForkJoinPoolgetForkJoinPool()<T> java.util.concurrent.CompletableFuture<T>schedule(java.util.concurrent.Callable<T> fn)static voidshutdown()Used to shut down the common fork/join pool.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openrewrite.RecipeScheduler
mapAsync, scheduleRun, scheduleVisit
-
-
-
-
Method Detail
-
common
public static ForkJoinScheduler common()
-
schedule
public <T> java.util.concurrent.CompletableFuture<T> schedule(java.util.concurrent.Callable<T> fn)
- Specified by:
schedulein interfaceRecipeScheduler
-
getForkJoinPool
public java.util.concurrent.ForkJoinPool getForkJoinPool()
-
shutdown
public static void shutdown()
Used to shut down the common fork/join pool.
-
-