public interface Server
Modifier and Type | Interface and Description |
---|---|
static class |
Server.Base
Base class for server.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
connectionLost(Throwable cause)
Test whenever the given exception is a connection-lost.
|
ServerOptions |
getOptions()
Get server options.
|
default void |
join()
Block current thread so JVM doesn't exit.
|
Server |
setOptions(ServerOptions options)
Set server options.
|
Server |
start(Jooby application)
Start an application.
|
Server |
stop()
Stop the server.
|
@Nonnull Server setOptions(@Nonnull ServerOptions options)
options
- Server options.@Nonnull ServerOptions getOptions()
@Nonnull Server start(Jooby application)
application
- Application to start.@Nonnull default void join()
Copyright © 2019. All rights reserved.