Class TiangongWebServer
java.lang.Object
tech.riemann.nif.support.tiangong.TiangongWebServer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServer
public class TiangongWebServer
extends Object
implements org.springframework.boot.web.server.WebServer
-
Constructor Summary
ConstructorsConstructorDescriptionTiangongWebServer(TiangongProperties properties, TiangongContext context, boolean http2Enabled, WebSocketHandlerRegistry webSocketRegistry) -
Method Summary
Modifier and TypeMethodDescriptionintgetPort()booleanvoidshutDownGracefully(org.springframework.boot.web.server.GracefulShutdownCallback callback) voidstart()voidstop()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.web.server.WebServer
destroy
-
Constructor Details
-
TiangongWebServer
public TiangongWebServer(TiangongProperties properties, TiangongContext context, boolean http2Enabled, WebSocketHandlerRegistry webSocketRegistry)
-
-
Method Details
-
start
public void start() throws org.springframework.boot.web.server.WebServerException- Specified by:
startin interfaceorg.springframework.boot.web.server.WebServer- Throws:
org.springframework.boot.web.server.WebServerException
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.boot.web.server.WebServer
-
getPort
public int getPort()- Specified by:
getPortin interfaceorg.springframework.boot.web.server.WebServer
-
shutDownGracefully
public void shutDownGracefully(org.springframework.boot.web.server.GracefulShutdownCallback callback) - Specified by:
shutDownGracefullyin interfaceorg.springframework.boot.web.server.WebServer
-
isShuttingDown
public boolean isShuttingDown()
-