/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. * @return the object with the embedded web server's thread pool configured */ public synchronized Service threadPool(int maxThreads) { return threadPool(maxThreads, -1, -1); }
/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. */ public static void threadPool(int maxThreads) { getInstance().threadPool(maxThreads); }
/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. * @param minThreads min nbr of threads. * @param idleTimeoutMillis thread idle timeout (ms). */ public static void threadPool(int maxThreads, int minThreads, int idleTimeoutMillis) { getInstance().threadPool(maxThreads, minThreads, idleTimeoutMillis); }
/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. * @return the object with the embedded web server's thread pool configured */ public synchronized Service threadPool(int maxThreads) { return threadPool(maxThreads, -1, -1); }
/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. */ public static void threadPool(int maxThreads) { getInstance().threadPool(maxThreads); }
/** * Configures the embedded web server's thread pool. * * @param maxThreads max nbr of threads. * @param minThreads min nbr of threads. * @param idleTimeoutMillis thread idle timeout (ms). */ public static void threadPool(int maxThreads, int minThreads, int idleTimeoutMillis) { getInstance().threadPool(maxThreads, minThreads, idleTimeoutMillis); }
sparkHttpService = spark.Service.ignite() .port(WORKER_LISTEN_PORT) .threadPool(WORKER_SINGLE_POINT_THREADS); sparkHttpService.post("/single", new AnalysisWorkerController(this)::handleSinglePoint);
sparkHttpService = spark.Service.ignite() .port(WORKER_LISTEN_PORT) .threadPool(WORKER_SINGLE_POINT_THREADS); sparkHttpService.post("/single", new AnalysisWorkerController(this)::handleSinglePoint);