Uses of Class
spark.Service
Packages that use Service
-
Uses of Service in spark
Modifier and TypeMethodDescriptionService.externalStaticFileLocation(String externalFolder) Sets the external folder serving static files.private static ServiceSpark.getInstance()static ServiceService.ignite()Creates a new Service (a Spark instance).Set the IP address that Spark should listen on.Service.port(int port) Set the port that Spark should listen on.Service.staticFileLocation(String folder) Sets the folder in classpath serving static files.Service.threadPool(int maxThreads) Configures the embedded web server's thread pool.Service.threadPool(int maxThreads, int minThreads, int idleTimeoutMillis) Configures the embedded web server's thread pool.Service.webSocketIdleTimeoutMillis(int timeoutMillis) Sets the max idle timeout in milliseconds for WebSocket connections.