| Constructor and Description | 
|---|
NettyServer(Responder responder,
           InetSocketAddress addr)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           Consumer<io.netty.channel.socket.SocketChannel> initializer)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           Consumer<io.netty.channel.socket.SocketChannel> initializer,
           Consumer<io.netty.bootstrap.ServerBootstrap> bootStrapInitialzier)  | 
NettyServer(Responder responder,
           InetSocketAddress addr,
           Consumer<io.netty.channel.socket.SocketChannel> initializer,
           Consumer<io.netty.bootstrap.ServerBootstrap> bootStrapInitialzier,
           io.netty.channel.EventLoopGroup bossGroup,
           io.netty.channel.EventLoopGroup workerGroup,
           io.netty.channel.EventLoopGroup callerGroup)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
close()
Stop this server. 
 | 
int | 
getNumActiveConnections()  | 
int | 
getPort()
The port this server runs on. 
 | 
void | 
join()
Wait for this server to exit. 
 | 
void | 
start()
Start this server. 
 | 
public NettyServer(Responder responder, InetSocketAddress addr) throws InterruptedException
InterruptedExceptionpublic NettyServer(Responder responder, InetSocketAddress addr, Consumer<io.netty.channel.socket.SocketChannel> initializer) throws InterruptedException
InterruptedExceptionpublic NettyServer(Responder responder, InetSocketAddress addr, Consumer<io.netty.channel.socket.SocketChannel> initializer, Consumer<io.netty.bootstrap.ServerBootstrap> bootStrapInitialzier) throws InterruptedException
InterruptedExceptionpublic NettyServer(Responder responder, InetSocketAddress addr, Consumer<io.netty.channel.socket.SocketChannel> initializer, Consumer<io.netty.bootstrap.ServerBootstrap> bootStrapInitialzier, io.netty.channel.EventLoopGroup bossGroup, io.netty.channel.EventLoopGroup workerGroup, io.netty.channel.EventLoopGroup callerGroup) throws InterruptedException
InterruptedExceptionpublic void start()
Serverpublic void close()
Serverpublic int getPort()
Serverpublic void join()
          throws InterruptedException
Serverjoin in interface ServerInterruptedExceptionpublic int getNumActiveConnections()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.