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

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

There is a newer version: 4.0.2
Show newest version
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.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 - 2024 Weber Informatics LLC | Privacy Policy