public interface EmbeddedServer
Modifier and Type | Method and Description |
---|---|
default void |
configureWebSockets(Map<String,WebSocketHandlerWrapper> webSocketHandlers,
Optional<Integer> webSocketIdleTimeoutMillis)
Configures the web sockets for the embedded server.
|
void |
extinguish()
Extinguish the embedded server.
|
int |
ignite(String host,
int port,
SslStores sslStores,
CountDownLatch latch,
int maxThreads,
int minThreads,
int threadIdleTimeoutMillis)
Ignites the embedded server, listening on the specified port, running SSL secured with the specified keystore
and truststore.
|
int ignite(String host, int port, SslStores sslStores, CountDownLatch latch, int maxThreads, int minThreads, int threadIdleTimeoutMillis)
host
- The address to listen onport
- - the portsslStores
- - The SSL sslStores.latch
- - the countdown latchmaxThreads
- - max nbr of threads.minThreads
- - min nbr of threads.threadIdleTimeoutMillis
- - idle timeout (ms).default void configureWebSockets(Map<String,WebSocketHandlerWrapper> webSocketHandlers, Optional<Integer> webSocketIdleTimeoutMillis)
webSocketHandlers
- - web socket handlers.webSocketIdleTimeoutMillis
- - Optional WebSocket idle timeout (ms).void extinguish()
Copyright © 2016. All rights reserved.