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
InterruptedException
public NettyServer(Responder responder, InetSocketAddress addr, Consumer<io.netty.channel.socket.SocketChannel> initializer) throws InterruptedException
InterruptedException
public NettyServer(Responder responder, InetSocketAddress addr, Consumer<io.netty.channel.socket.SocketChannel> initializer, Consumer<io.netty.bootstrap.ServerBootstrap> bootStrapInitialzier) throws InterruptedException
InterruptedException
public 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
InterruptedException
public void start()
Server
public void close()
Server
public int getPort()
Server
public void join() throws InterruptedException
Server
join
in interface Server
InterruptedException
public int getNumActiveConnections()
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.