public class NettyServerBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.group.ChannelGroup |
accepted |
protected InetSocketAddress |
bindAddress |
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected io.netty.channel.ChannelFuture |
channelFuture |
protected io.netty.channel.ChannelInitializer<io.netty.channel.Channel> |
initializer |
protected InetSocketAddress |
serverAddr |
protected String |
serviceName |
| Constructor and Description |
|---|
NettyServerBase(InetSocketAddress address) |
NettyServerBase(String serviceName,
InetSocketAddress addr) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.Channel |
getChannel() |
InetSocketAddress |
getListenAddress() |
void |
init(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> initializer,
int workerNum) |
void |
setName(String name) |
void |
shutdown() |
void |
shutdown(boolean waitUntilThreadsStop) |
void |
start() |
protected String serviceName
protected InetSocketAddress serverAddr
protected InetSocketAddress bindAddress
protected io.netty.channel.ChannelInitializer<io.netty.channel.Channel> initializer
protected io.netty.bootstrap.ServerBootstrap bootstrap
protected io.netty.channel.ChannelFuture channelFuture
protected io.netty.channel.group.ChannelGroup accepted
public NettyServerBase(InetSocketAddress address)
public NettyServerBase(String serviceName, InetSocketAddress addr)
public void setName(String name)
public void init(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> initializer,
int workerNum)
public InetSocketAddress getListenAddress()
public void start()
public io.netty.channel.Channel getChannel()
public void shutdown()
public void shutdown(boolean waitUntilThreadsStop)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.