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 |
---|---|
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getScheme() |
java.net.URI |
getURI() |
java.net.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()
java.lang.String getHost()
java.lang.String getScheme()
java.net.URL getURL()
java.net.URI getURI()
default boolean isServer()
EmbeddedApplication
isServer
in interface EmbeddedApplication<EmbeddedServer>
default boolean isKeepAlive()