public class EmbeddedJettyServer extends Object implements EmbeddedServer
Constructor and Description |
---|
EmbeddedJettyServer(org.eclipse.jetty.server.Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
configureWebSockets(Map<String,Class<?>> webSocketHandlers,
Optional<Integer> webSocketIdleTimeoutMillis)
Configures the web sockets for the embedded server.
|
void |
extinguish()
Extinguish the embedded server.
|
void |
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.
|
public EmbeddedJettyServer(org.eclipse.jetty.server.Handler handler)
public void configureWebSockets(Map<String,Class<?>> webSocketHandlers, Optional<Integer> webSocketIdleTimeoutMillis)
EmbeddedServer
configureWebSockets
in interface EmbeddedServer
webSocketHandlers
- - web socket handlers.webSocketIdleTimeoutMillis
- - Optional WebSocket idle timeout (ms).public void ignite(String host, int port, SslStores sslStores, CountDownLatch latch, int maxThreads, int minThreads, int threadIdleTimeoutMillis)
ignite
in interface EmbeddedServer
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).public void extinguish()
extinguish
in interface EmbeddedServer
Copyright © 2016. All rights reserved.