Package org.apache.pekko.dispatch
Class ForkJoinExecutorConfigurator.ForkJoinExecutorServiceFactory
- java.lang.Object
-
- org.apache.pekko.dispatch.ForkJoinExecutorConfigurator.ForkJoinExecutorServiceFactory
-
- All Implemented Interfaces:
ExecutorServiceFactory
- Enclosing class:
- ForkJoinExecutorConfigurator
public class ForkJoinExecutorConfigurator.ForkJoinExecutorServiceFactory extends java.lang.Object implements ExecutorServiceFactory
-
-
Constructor Summary
Constructors Constructor Description ForkJoinExecutorServiceFactory(java.lang.String id, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode, int maxPoolSize)ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism)ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode)ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode, int maxPoolSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanasyncMode()java.util.concurrent.ExecutorServicecreateExecutorService()java.lang.Stringid()intmaxPoolSize()intparallelism()java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactorythreadFactory()
-
-
-
Constructor Detail
-
ForkJoinExecutorServiceFactory
public ForkJoinExecutorServiceFactory(java.lang.String id, java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode, int maxPoolSize)
-
ForkJoinExecutorServiceFactory
public ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode, int maxPoolSize)
-
ForkJoinExecutorServiceFactory
public ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism, boolean asyncMode)
-
ForkJoinExecutorServiceFactory
public ForkJoinExecutorServiceFactory(java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory, int parallelism)
-
-
Method Detail
-
asyncMode
public boolean asyncMode()
-
createExecutorService
public java.util.concurrent.ExecutorService createExecutorService()
- Specified by:
createExecutorServicein interfaceExecutorServiceFactory
-
id
public java.lang.String id()
-
maxPoolSize
public int maxPoolSize()
-
parallelism
public int parallelism()
-
threadFactory
public java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory()
-
-