Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
List<io.netty.channel.ChannelHandler> |
channelHandlers |
protected NettyServiceConfig |
config |
static org.apache.log4j.Logger |
logger |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
NettyService() |
NettyService(NettyServiceConfig config) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected NettyWebSocketCentral |
createNettyWebSocketCentral(INettySocketHandler handler) |
void |
init(NettyServiceConfig config) |
void |
initNettyServer()
init initWebSocketServer
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic static final org.apache.log4j.Logger logger
protected NettyServiceConfig config
public List<io.netty.channel.ChannelHandler> channelHandlers
public NettyService(NettyServiceConfig config) throws Exception
Exceptionpublic void init(NettyServiceConfig config) throws Exception
Exceptionprotected NettyWebSocketCentral createNettyWebSocketCentral(INettySocketHandler handler) throws Exception
Exceptionpublic void initNettyServer()
Copyright © 2019. All rights reserved.