Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.concurrent.ForkJoinPool

        java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory, java.util.concurrent.ForkJoinPool.ManagedBlocker
    • Field Summary

      • Fields inherited from class java.util.concurrent.ForkJoinPool

        defaultForkJoinWorkerThreadFactory
    • Constructor Summary

      Constructors 
      Constructor Description
      PinnedForkJoinPool​(int parallelism, PinnedThreadFactory factory)
      Creates a new affinity aware PinnedForkJoinPool with the given initial parameters.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • 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
      • Methods inherited from class java.util.concurrent.AbstractExecutorService

        invokeAll, invokeAny, invokeAny
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PinnedForkJoinPool

        public PinnedForkJoinPool​(int parallelism,
                                  @Nonnull
                                  PinnedThreadFactory factory)
        Creates a new affinity aware PinnedForkJoinPool with the given initial parameters.
        Parameters:
        parallelism - the parallelism level (amount of worker threads to be spawned)
        factory - the PinnedThread factory to use when the executor creates new fork-join worker threads
    • Method Detail

      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable