public abstract class AbstractNettyServer extends Object implements JNetServer
| 限定符和类型 | 字段和说明 |
|---|---|
protected InetSocketAddress |
local |
protected io.netty.channel.socket.ServerSocketChannel |
serverCahnel |
| 构造器和说明 |
|---|
AbstractNettyServer(InetSocketAddress local) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
bind(InetSocketAddress local)
启动端口绑定
|
protected abstract io.netty.channel.ChannelFuture |
doBind(InetSocketAddress local)
使用起动器进行端口绑定
|
abstract io.netty.bootstrap.ServerBootstrap |
getBooter()
获取服务端使用的起动器
|
abstract io.netty.channel.EventLoopGroup |
getBossWorkers()
获取服务端使用的选择线程池
|
abstract io.netty.channel.EventLoopGroup |
getIoWorkers()
获取服务端使用的IO线程池
|
String |
getName() |
boolean |
isActive() |
void |
setName(String name) |
boolean |
start() |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbroadCast, getConnection, getConnectionCount, getConnectionsprotected final InetSocketAddress local
protected io.netty.channel.socket.ServerSocketChannel serverCahnel
public AbstractNettyServer(InetSocketAddress local)
public abstract io.netty.bootstrap.ServerBootstrap getBooter()
public abstract io.netty.channel.EventLoopGroup getIoWorkers()
public abstract io.netty.channel.EventLoopGroup getBossWorkers()
protected final boolean bind(InetSocketAddress local)
local - protected abstract io.netty.channel.ChannelFuture doBind(InetSocketAddress local)
local - public final boolean start()
start 在接口中 JNetServerpublic final void stop()
stop 在接口中 JNetServerpublic boolean isActive()
isActive 在接口中 JNetServerpublic final String getName()
getName 在接口中 JNetServerpublic final void setName(String name)
setName 在接口中 JNetServerCopyright © 2020. All rights reserved.