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.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 boolean
asyncMode()
java.util.concurrent.ExecutorService
createExecutorService()
int
maxPoolSize()
int
parallelism()
java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory
threadFactory()
-
-
-
Constructor Detail
-
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:
createExecutorService
in interfaceExecutorServiceFactory
-
maxPoolSize
public int maxPoolSize()
-
parallelism
public int parallelism()
-
threadFactory
public java.util.concurrent.ForkJoinPool.ForkJoinWorkerThreadFactory threadFactory()
-
-