public interface NettyEmbeddedServerFactory
NettyEmbeddedServer
.Modifier and Type | Method and Description |
---|---|
NettyEmbeddedServer |
build(NettyHttpServerConfiguration configuration)
Builds a
NettyEmbeddedServer for the given configuration. |
default NettyEmbeddedServer |
build(NettyHttpServerConfiguration configuration,
ServerSslConfiguration sslConfiguration)
Builds a
NettyEmbeddedServer for the given configuration. |
@NonNull NettyEmbeddedServer build(@NonNull NettyHttpServerConfiguration configuration)
NettyEmbeddedServer
for the given configuration.
Note that the returned server instance should be closed gracefully by calling the NettyEmbeddedServer.stop()
method.
configuration
- The configuration, never null
NettyEmbeddedServer
instance@NonNull default NettyEmbeddedServer build(@NonNull NettyHttpServerConfiguration configuration, @Nullable ServerSslConfiguration sslConfiguration)
NettyEmbeddedServer
for the given configuration.
Note that the returned server instance should be closed gracefully by calling the NettyEmbeddedServer.stop()
method.
configuration
- The configuration, never null
sslConfiguration
- The SSL configuration, can be null
if SSL is not requiredNettyEmbeddedServer
instance