public class ZeroMQTcpServer<IN,OUT> extends TcpServer<IN,OUT>
| Constructor and Description |
|---|
ZeroMQTcpServer(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 <C> NetChannel<IN,OUT> |
createChannel(C ioChannel)
Subclasses should implement this method and provide a
NetChannel object. |
reactor.core.composable.Promise<java.lang.Boolean> |
shutdown()
Shutdown this NetServer and complete the returned
Promise when shut
down. |
TcpServer<IN,OUT> |
start(java.lang.Runnable started)
Start this server, invoking the given callback when the server has started.
|
getListenAddress, getOptions, getSslOptions, startclose, close, close, doClose, doCloseChannel, getChannels, getCodec, getConsumers, getEnvironment, getReactor, iterator, notifyClose, notifyError, notifyOpen, notifyShutdown, notifyStart, register, selectpublic ZeroMQTcpServer(@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 TcpServer<IN,OUT> start(@Nullable java.lang.Runnable started)
TcpServerprotected <C> NetChannel<IN,OUT> createChannel(C ioChannel)
AbstractNetPeerNetChannel object.createChannel in class AbstractNetPeer<IN,OUT>C - The type of the channel object.ioChannel - The IO channel object to associate with this NetChannel.NetChannel object.