public interface EmbeddedServer
Modifier and Type | Method and Description |
---|---|
int |
activeThreadCount() |
default void |
configureWebSockets(Map<String,WebSocketHandlerWrapper> webSocketHandlers,
Optional<Long> webSocketIdleTimeoutMillis)
Configures the web sockets for the embedded server.
|
void |
extinguish()
Extinguish the embedded server.
|
int |
ignite(String host,
int port,
SslStores sslStores,
int maxThreads,
int minThreads,
int threadIdleTimeoutMillis)
Ignites the embedded server, listening on the specified port, running SSL secured with the specified keystore
and truststore.
|
void |
join()
Joins the embedded server thread(s).
|
default void |
trustForwardHeaders(boolean trust)
Must be called before ignite()
Must be it's own default method to maintain backwards compatibility.
|
int ignite(String host, int port, SslStores sslStores, int maxThreads, int minThreads, int threadIdleTimeoutMillis) throws Exception
host
- The address to listen onport
- - the portsslStores
- - The SSL sslStores.maxThreads
- - max nbr of threads.minThreads
- - min nbr of threads.Exception
default void trustForwardHeaders(boolean trust)
default void configureWebSockets(Map<String,WebSocketHandlerWrapper> webSocketHandlers, Optional<Long> webSocketIdleTimeoutMillis)
webSocketHandlers
- - web socket handlers.webSocketIdleTimeoutMillis
- - Optional WebSocket idle timeout (ms).void join() throws InterruptedException
InterruptedException
void extinguish()
int activeThreadCount()
Copyright © 2022. All rights reserved.