Class PinnedForkJoinPool
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ForkJoinPool
-
- org.sheinbergon.needle.concurrent.PinnedForkJoinPool
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,java.util.concurrent.Executor,java.util.concurrent.ExecutorService
public final class PinnedForkJoinPool extends java.util.concurrent.ForkJoinPool implements java.io.Closeable
-
-
Constructor Summary
Constructors Constructor Description PinnedForkJoinPool(int parallelism, PinnedThreadFactory factory)Creates a new affinity awarePinnedForkJoinPoolwith the given initial parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class java.util.concurrent.ForkJoinPool
awaitQuiescence, awaitTermination, commonPool, drainTasksTo, execute, execute, getActiveThreadCount, getAsyncMode, getCommonPoolParallelism, getFactory, getParallelism, getPoolSize, getQueuedSubmissionCount, getQueuedTaskCount, getRunningThreadCount, getStealCount, getUncaughtExceptionHandler, hasQueuedSubmissions, invoke, invokeAll, isQuiescent, isShutdown, isTerminated, isTerminating, managedBlock, newTaskFor, newTaskFor, pollSubmission, shutdown, shutdownNow, submit, submit, submit, submit, toString
-
-
-
-
Constructor Detail
-
PinnedForkJoinPool
public PinnedForkJoinPool(int parallelism, @Nonnull PinnedThreadFactory factory)Creates a new affinity awarePinnedForkJoinPoolwith the given initial parameters.- Parameters:
parallelism- the parallelism level (amount of worker threads to be spawned)factory- thePinnedThreadfactory to use when the executor creates new fork-join worker threads
-
-