public abstract class AbstractNettyClient extends Object
| 构造器和说明 |
|---|
AbstractNettyClient() |
AbstractNettyClient(InetSocketAddress remoteAddress) |
AbstractNettyClient(String namePre,
InetSocketAddress remoteAddress) |
AbstractNettyClient(String remoteHost,
int remotePort) |
| 限定符和类型 | 方法和说明 |
|---|---|
AbstractNettyClient |
config(io.netty.bootstrap.Bootstrap bootstrap) |
Optional<io.netty.channel.ChannelFuture> |
connect() |
Optional<io.netty.channel.ChannelFuture> |
connect(InetSocketAddress remoteAddress) |
int |
getActiveSocketChannelCount() |
io.netty.bootstrap.Bootstrap |
getBootstrap() |
io.netty.channel.socket.SocketChannel |
getChannel() |
int |
getIoRatio() |
int |
getIoThreadCount() |
String |
getName() |
int |
getPort() |
InetSocketAddress |
getRemoteAddress() |
io.netty.channel.EventLoopGroup |
getWorker() |
boolean |
isConnect() |
boolean |
isConnectIng() |
boolean |
isEnableEpoll() |
void |
setChannel(io.netty.channel.socket.SocketChannel channel) |
void |
setIoRatio(int ioRatio) |
void |
setIoThreadCount(int ioThreadCount) |
io.netty.channel.ChannelFuture |
stop() |
String |
toString() |
public AbstractNettyClient()
public AbstractNettyClient(String remoteHost, int remotePort)
public AbstractNettyClient(InetSocketAddress remoteAddress)
public AbstractNettyClient(String namePre, InetSocketAddress remoteAddress)
namePre - 名称前缀remoteAddress - 远程地址public void setIoRatio(int ioRatio)
public void setIoThreadCount(int ioThreadCount)
public AbstractNettyClient config(io.netty.bootstrap.Bootstrap bootstrap)
public boolean isConnect()
public Optional<io.netty.channel.ChannelFuture> connect()
public Optional<io.netty.channel.ChannelFuture> connect(InetSocketAddress remoteAddress)
public io.netty.channel.socket.SocketChannel getChannel()
public void setChannel(io.netty.channel.socket.SocketChannel channel)
public InetSocketAddress getRemoteAddress()
public io.netty.channel.EventLoopGroup getWorker()
public int getIoRatio()
public int getIoThreadCount()
public boolean isConnectIng()
public boolean isEnableEpoll()
public io.netty.bootstrap.Bootstrap getBootstrap()
public io.netty.channel.ChannelFuture stop()
public String getName()
public int getPort()
public int getActiveSocketChannelCount()
Copyright © 2021. All rights reserved.