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

spark.embeddedserver.jetty.JettyServerFactory Maven / Gradle / Ivy

Go to download

A micro framework for creating web applications in Kotlin and Java 8 with minimal effort

There is a newer version: 2.9.4
Show newest version
package spark.embeddedserver.jetty;

import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.thread.ThreadPool;

/**
 * This interface can be implemented to provide custom Jetty server instances
 * with specific settings or features.
 */
public interface JettyServerFactory {
    /**
     * Creates a Jetty server.
     *
     * @param maxThreads          maxThreads
     * @param minThreads          minThreads
     * @param threadTimeoutMillis threadTimeoutMillis
     * @return a new jetty server instance
     */
    Server create(int maxThreads, int minThreads, int threadTimeoutMillis);

    Server create(ThreadPool threadPool);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy