spark.embeddedserver.jetty.JettyServerFactory Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy