public abstract class AbstractNettyServer extends Object implements Runnable
| 构造器和说明 |
|---|
AbstractNettyServer(InetSocketAddress address) |
AbstractNettyServer(int port) |
AbstractNettyServer(String preName,
InetSocketAddress address) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.bootstrap.ServerBootstrap |
getBootstrap() |
io.netty.channel.EventLoopGroup |
getBoss() |
int |
getIoRatio() |
int |
getIoThreadCount() |
String |
getName() |
int |
getPort() |
InetSocketAddress |
getServerAddress() |
io.netty.channel.socket.ServerSocketChannel |
getServerChannel() |
io.netty.channel.EventLoopGroup |
getWorker() |
void |
init() |
boolean |
isEnableEpoll() |
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 int getIoRatio()
public int getIoThreadCount()
public io.netty.channel.EventLoopGroup getWorker()
public io.netty.channel.EventLoopGroup getBoss()
public io.netty.bootstrap.ServerBootstrap getBootstrap()
public void stop()
public io.netty.channel.socket.ServerSocketChannel getServerChannel()
public boolean isEnableEpoll()
public InetSocketAddress getServerAddress()
public String getName()
public int getPort()
Copyright © 2021. All rights reserved.