public class ServerOptions extends NettyOptions<ServerBootstrap,ServerOptions>
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerOptions.Builder<BUILDER extends ServerOptions.Builder<BUILDER>> |
afterChannelInit, afterNettyContextInit, DEFAULT_PORT| Modifier | Constructor and Description |
|---|---|
protected |
ServerOptions(ServerOptions.Builder<?> builder)
Build a new
ServerOptions. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
asDetailedString() |
java.lang.String |
asSimpleString() |
static <BUILDER extends ServerOptions.Builder<BUILDER>> |
builder()
Creates a builder for
ServerOptions |
static <BUILDER extends ServerOptions.Builder<BUILDER>> |
builder(ServerBootstrap serverBootstrap)
Creates a builder for
ServerOptions |
ServerOptions |
duplicate()
Return a copy of all options and references such as
NettyOptions.Builder.onChannelInit(Predicate). |
ServerBootstrap |
get() |
java.net.SocketAddress |
getAddress()
Return a new eventual
SocketAddress |
java.lang.String |
toString() |
afterChannelInit, afterNettyContextInit, defaultSslContext, getLoopResources, getSslHandler, isSecure, onChannelInit, preferNative, sslCloseNotifyFlushTimeoutMillis, sslCloseNotifyReadTimeoutMillis, sslContext, sslHandshakeTimeoutMillisprotected ServerOptions(ServerOptions.Builder<?> builder)
ServerOptions.public static <BUILDER extends ServerOptions.Builder<BUILDER>> ServerOptions.Builder<BUILDER> builder()
ServerOptionsBUILDER - A ServerOptions.Builder subclasspublic static <BUILDER extends ServerOptions.Builder<BUILDER>> ServerOptions.Builder<BUILDER> builder(ServerBootstrap serverBootstrap)
ServerOptionsBUILDER - A ServerOptions.Builder subclassserverBootstrap - the server bootstrap reference to usepublic ServerOptions duplicate()
NettyOptionsNettyOptions.Builder.onChannelInit(Predicate). Further option uses on the returned builder will
be fully isolated from this option builder.duplicate in class NettyOptions<ServerBootstrap,ServerOptions>public ServerBootstrap get()
get in interface java.util.function.Supplier<ServerBootstrap>get in class NettyOptions<ServerBootstrap,ServerOptions>public final java.net.SocketAddress getAddress()
NettyOptionsSocketAddressgetAddress in class NettyOptions<ServerBootstrap,ServerOptions>SocketAddress or nullpublic java.lang.String asSimpleString()
asSimpleString in class NettyOptions<ServerBootstrap,ServerOptions>public java.lang.String asDetailedString()
asDetailedString in class NettyOptions<ServerBootstrap,ServerOptions>public java.lang.String toString()
toString in class NettyOptions<ServerBootstrap,ServerOptions>