Package org.neo4j.gds.core.concurrency
Class ExecutorServiceUtil
- java.lang.Object
-
- org.neo4j.gds.core.concurrency.ExecutorServiceUtil
-
public final class ExecutorServiceUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.concurrent.ExecutorService
DEFAULT_SINGLE_THREAD_POOL
static java.util.concurrent.ThreadFactory
DEFAULT_THREAD_FACTORY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ForkJoinPool
createForkJoinPool(int concurrency)
static java.util.concurrent.ExecutorService
createSingleThreadPool(java.lang.String threadPrefix)
static java.util.concurrent.ExecutorService
createThreadPool(java.lang.String threadPrefix, int corePoolSize, int maxPoolSize)
static java.lang.Thread
newThread(java.lang.Runnable code)
-
-
-
Method Detail
-
createSingleThreadPool
public static java.util.concurrent.ExecutorService createSingleThreadPool(java.lang.String threadPrefix)
-
createThreadPool
public static java.util.concurrent.ExecutorService createThreadPool(java.lang.String threadPrefix, int corePoolSize, int maxPoolSize)
-
createForkJoinPool
public static java.util.concurrent.ForkJoinPool createForkJoinPool(int concurrency)
-
newThread
public static java.lang.Thread newThread(java.lang.Runnable code)
-
-