public class NettyWebServer extends Object implements WebServer
WebServer
that can be used to control a Reactor Netty web server. Usually this
class should be created using the NettyReactiveWebServerFactory
and not
directly.Constructor and Description |
---|
NettyWebServer(reactor.ipc.netty.http.server.HttpServer httpServer,
ReactorHttpHandlerAdapter handlerAdapter,
Duration lifecycleTimeout) |
Modifier and Type | Method and Description |
---|---|
int |
getPort()
Return the port this server is listening on.
|
void |
start()
Starts the web server.
|
void |
stop()
Stops the web server.
|
public NettyWebServer(reactor.ipc.netty.http.server.HttpServer httpServer, ReactorHttpHandlerAdapter handlerAdapter, Duration lifecycleTimeout)
public void start() throws WebServerException
WebServer
start
in interface WebServer
WebServerException
- if the server cannot be startedpublic void stop() throws WebServerException
WebServer
stop
in interface WebServer
WebServerException
- if the server cannot be stoppedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.