Package co.elastic.apm.agent.util
Class ExecutorUtils
- java.lang.Object
-
- co.elastic.apm.agent.util.ExecutorUtils
-
public final class ExecutorUtils extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExecutorUtils.NamedThreadFactorystatic classExecutorUtils.SingleNamedThreadFactory
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.concurrent.ThreadPoolExecutorcreateSingleThreadDaemonPool(java.lang.String threadPurpose, int queueCapacity)static java.util.concurrent.ScheduledThreadPoolExecutorcreateSingleThreadSchedulingDaemonPool(java.lang.String threadPurpose)static java.util.concurrent.ThreadPoolExecutorcreateThreadDaemonPool(java.lang.String threadPurpose, int poolSize, int queueCapacity)static voidshutdownAndWaitTermination(java.util.concurrent.ExecutorService executor)Implementation adapted form theExecutorServiceJavadocstatic voidshutdownAndWaitTermination(java.util.concurrent.ExecutorService executor, long timeout, java.util.concurrent.TimeUnit unit)
-
-
-
Method Detail
-
createSingleThreadSchedulingDaemonPool
public static java.util.concurrent.ScheduledThreadPoolExecutor createSingleThreadSchedulingDaemonPool(java.lang.String threadPurpose)
-
createSingleThreadDaemonPool
public static java.util.concurrent.ThreadPoolExecutor createSingleThreadDaemonPool(java.lang.String threadPurpose, int queueCapacity)
-
createThreadDaemonPool
public static java.util.concurrent.ThreadPoolExecutor createThreadDaemonPool(java.lang.String threadPurpose, int poolSize, int queueCapacity)
-
shutdownAndWaitTermination
public static void shutdownAndWaitTermination(java.util.concurrent.ExecutorService executor)
Implementation adapted form theExecutorServiceJavadoc
-
shutdownAndWaitTermination
public static void shutdownAndWaitTermination(java.util.concurrent.ExecutorService executor, long timeout, java.util.concurrent.TimeUnit unit)
-
-