Package io.quarkus.runtime
Class ExecutorRecorder
- java.lang.Object
-
- io.quarkus.runtime.ExecutorRecorder
-
public class ExecutorRecorder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ThreadPoolConfig
threadPoolConfig
-
Constructor Summary
Constructors Constructor Description ExecutorRecorder(ThreadPoolConfig threadPoolConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
calculateMaxThreads()
static Executor
getCurrent()
static int
getMaxSize(ThreadPoolConfig threadPoolConfig)
ScheduledExecutorService
setupRunTime(ShutdownContext shutdownContext, LaunchMode launchMode, ThreadFactory threadFactory, org.jboss.threads.ContextHandler<Object> contextHandler)
-
-
-
Field Detail
-
threadPoolConfig
final ThreadPoolConfig threadPoolConfig
-
-
Constructor Detail
-
ExecutorRecorder
public ExecutorRecorder(ThreadPoolConfig threadPoolConfig)
-
-
Method Detail
-
setupRunTime
public ScheduledExecutorService setupRunTime(ShutdownContext shutdownContext, LaunchMode launchMode, ThreadFactory threadFactory, org.jboss.threads.ContextHandler<Object> contextHandler)
-
getMaxSize
public static int getMaxSize(ThreadPoolConfig threadPoolConfig)
-
calculateMaxThreads
public static int calculateMaxThreads()
-
getCurrent
public static Executor getCurrent()
-
-