public abstract class AbstractNettyServer extends Object implements Runnable, Closeable
| 构造器和说明 |
|---|
AbstractNettyServer(InetSocketAddress address) |
AbstractNettyServer(int port) |
AbstractNettyServer(String preName,
InetSocketAddress address) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
io.netty.bootstrap.ServerBootstrap |
getBootstrap() |
io.netty.channel.ChannelFuture |
getBootstrapFuture() |
Throwable |
getBootstrapThrowable() |
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 int getIoRatio()
public void setIoRatio(int ioRatio)
public int getIoThreadCount()
public void setIoThreadCount(int ioThreadCount)
public io.netty.channel.EventLoopGroup getWorker()
public io.netty.channel.EventLoopGroup getBoss()
public io.netty.bootstrap.ServerBootstrap getBootstrap()
public io.netty.channel.ChannelFuture getBootstrapFuture()
public Throwable getBootstrapThrowable()
public void stop()
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic io.netty.channel.socket.ServerSocketChannel getServerChannel()
public boolean isEnableEpoll()
public InetSocketAddress getServerAddress()
public String getName()
public int getPort()
Copyright © 2023. All rights reserved.