io.quarkus.runtime.ExecutorRecorder Maven / Gradle / Ivy
package io.quarkus.runtime;
import java.time.Duration;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.Executor;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import java.util.function.IntSupplier;
import org.jboss.logging.Logger;
import org.jboss.threads.ContextHandler;
import org.jboss.threads.EnhancedQueueExecutor;
import org.jboss.threads.JBossExecutors;
import org.jboss.threads.JBossThreadFactory;
import org.wildfly.common.cpu.ProcessorInfo;
import io.quarkus.runtime.annotations.Recorder;
/**
*
*/
@Recorder
public class ExecutorRecorder {
private static final Logger log = Logger.getLogger("io.quarkus.thread-pool");
private static volatile Executor current;
final ThreadPoolConfig threadPoolConfig;
public ExecutorRecorder(ThreadPoolConfig threadPoolConfig) {
this.threadPoolConfig = threadPoolConfig;
}
public ScheduledExecutorService setupRunTime(ShutdownContext shutdownContext,
LaunchMode launchMode, ThreadFactory threadFactory, ContextHandler
© 2015 - 2025 Weber Informatics LLC | Privacy Policy