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

spark.SparkServer 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;

import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CountDownLatch;

import spark.ssl.SslStores;

/**
 * Created by Per Wendel on 2015-09-01.
 */
public interface SparkServer {

    /**
     * Ignites the spark server, listening on the specified port, running SSL secured with the specified keystore
     * and truststore.  If truststore is null, keystore is reused.
     *
     * @param host                       The address to listen on
     * @param port                       - the port
     * @param sslStores                  - The SSL sslStores.
     * @param staticFilesFolder          - the route to static files in classPath
     * @param externalFilesFolder        - the route to static files external to classPath.
     * @param latch                      - the countdown latch
     * @param maxThreads                 - max nbr of threads.
     * @param minThreads                 - min nbr of threads.
     * @param threadIdleTimeoutMillis    - idle timeout (ms).
     * @param webSocketHandlers          - web socket handlers.
     * @param webSocketIdleTimeoutMillis - Optional WebSocket idle timeout (ms).
     */
    void ignite(String host,
                int port,
                SslStores sslStores,
                String staticFilesFolder,
                String externalFilesFolder,
                CountDownLatch latch,
                int maxThreads,
                int minThreads,
                int threadIdleTimeoutMillis,
                Map> webSocketHandlers,
                Optional webSocketIdleTimeoutMillis);

    void stop();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy