All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.factoryfx.jetty.ThreadPoolFactory Maven / Gradle / Ivy

package io.github.factoryfx.jetty;

import io.github.factoryfx.factory.FactoryBase;
import io.github.factoryfx.factory.attribute.primitive.IntegerAttribute;
import org.eclipse.jetty.util.thread.ExecutorThreadPool;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
import org.eclipse.jetty.util.thread.ThreadPool;

public class ThreadPoolFactory> extends FactoryBase {

    public final IntegerAttribute poolSize = new IntegerAttribute().labelText("Pool size");

    public ThreadPoolFactory() {
        configLifeCycle().setCreator(() -> new QueuedThreadPool(poolSize.get()));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy