public abstract class AbstractProtocol extends Object implements ProtocolHandler, ServerListener
COMPARATOR| 构造器和说明 |
|---|
AbstractProtocol() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPipeline(io.netty.channel.Channel channel,
io.netty.buffer.ByteBuf clientFirstMsg)
add protocol pipeline support
|
int |
getAutoFlushIdleMs() |
int |
getOrder()
default Priority order 0
|
void |
setAutoFlushIdleMs(int autoFlushIdleMs) |
String |
toString() |
canSupport, canSupport, getProtocolName, onOutOfMaxConnectionconfig, onServerStart, onServerStoppublic int getAutoFlushIdleMs()
public void setAutoFlushIdleMs(int autoFlushIdleMs)
public void addPipeline(io.netty.channel.Channel channel,
io.netty.buffer.ByteBuf clientFirstMsg)
throws Exception
ProtocolHandleraddPipeline 在接口中 ProtocolHandlerchannel - TCP channelclientFirstMsg - clientFirstMsgException - Exceptionpublic int getOrder()
ProtocolHandlergetOrder 在接口中 OrderedgetOrder 在接口中 ProtocolHandlergetOrder 在接口中 ServerListenerCopyright © 2023. All rights reserved.