spark.embeddedserver.jetty.JettyServerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spark-core Show documentation
Show all versions of spark-core Show documentation
A micro framework for creating web applications in Kotlin and Java 8 with minimal effort
The 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);
}