public abstract class AbstractNettyServer extends Object implements Runnable
| 构造器和说明 |
|---|
AbstractNettyServer(InetSocketAddress address) |
AbstractNettyServer(int port) |
AbstractNettyServer(String preName,
InetSocketAddress address) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName() |
int |
getPort() |
io.netty.channel.socket.ServerSocketChannel |
getServerChannel() |
void |
run() |
void |
setIoRatio(int ioRatio) |
void |
setIoThreadCount(int ioThreadCount) |
void |
stop() |
String |
toString() |
public AbstractNettyServer(int port)
public AbstractNettyServer(InetSocketAddress address)
public AbstractNettyServer(String preName, InetSocketAddress address)
public void setIoRatio(int ioRatio)
public void setIoThreadCount(int ioThreadCount)
public void stop()
public io.netty.channel.socket.ServerSocketChannel getServerChannel()
public String getName()
public int getPort()
Copyright © 2020. All rights reserved.