public interface EmbeddedServer extends EmbeddedApplication<EmbeddedServer>
An EmbeddedServer is a general abstraction to manage the lifecycle of any server implementation within a running Micronaut application.
Modifier and Type | Method and Description |
---|---|
default URI |
getContextURI() |
String |
getHost() |
int |
getPort() |
String |
getScheme() |
URI |
getURI() |
URL |
getURL() |
default boolean |
isKeepAlive()
Most servers provide a way to block such that the server doesn't exit, however some require the creation of a keep alive thread.
|
default boolean |
isServer()
This method returns whether the application is a server application or not.
|
getApplicationConfiguration, getApplicationContext, getEnvironment, isForceExit
start, stop
int getPort()
String getHost()
String getScheme()
URL getURL()
URI getURI()
default URI getContextURI()
default boolean isServer()
EmbeddedApplication
isServer
in interface EmbeddedApplication<EmbeddedServer>
default boolean isKeepAlive()