IN - The type that will be received by this serverOUT - The type that will be sent by this serverpublic abstract class TcpServer<IN,OUT> extends AbstractNetPeer<IN,OUT> implements NetServer<IN,OUT>
| Modifier | Constructor and Description |
|---|---|
protected |
TcpServer(reactor.core.Environment env,
reactor.core.Reactor reactor,
java.net.InetSocketAddress listenAddress,
ServerSocketOptions options,
SslOptions sslOptions,
reactor.io.encoding.Codec<reactor.io.Buffer,IN,OUT> codec,
java.util.Collection<reactor.function.Consumer<NetChannel<IN,OUT>>> consumers) |
| Modifier and Type | Method and Description |
|---|---|
protected java.net.InetSocketAddress |
getListenAddress()
Get the address to which this server is bound.
|
protected ServerSocketOptions |
getOptions()
Get the
ServerSocketOptions currently in effect. |
protected SslOptions |
getSslOptions()
Get the
SslOptions current in effect. |
reactor.core.composable.Promise<java.lang.Boolean> |
start()
Start this server.
|
abstract TcpServer<IN,OUT> |
start(java.lang.Runnable started)
Start this server, invoking the given callback when the server has started.
|
close, close, close, createChannel, doClose, doCloseChannel, getChannels, getCodec, getConsumers, getEnvironment, getReactor, iterator, notifyClose, notifyError, notifyOpen, notifyShutdown, notifyStart, register, selectprotected TcpServer(@Nonnull
reactor.core.Environment env,
@Nonnull
reactor.core.Reactor reactor,
@Nullable
java.net.InetSocketAddress listenAddress,
ServerSocketOptions options,
SslOptions sslOptions,
@Nullable
reactor.io.encoding.Codec<reactor.io.Buffer,IN,OUT> codec,
@Nonnull
java.util.Collection<reactor.function.Consumer<NetChannel<IN,OUT>>> consumers)
public reactor.core.composable.Promise<java.lang.Boolean> start()
public abstract TcpServer<IN,OUT> start(@Nullable java.lang.Runnable started)
protected java.net.InetSocketAddress getListenAddress()
protected ServerSocketOptions getOptions()
ServerSocketOptions currently in effect.protected SslOptions getSslOptions()
SslOptions current in effect.