public interface ProtocolHandler extends Ordered
COMPARATOR| 限定符和类型 | 方法和说明 |
|---|---|
void |
addPipeline(io.netty.channel.Channel channel)
add protocol pipeline support
|
boolean |
canSupport(io.netty.buffer.ByteBuf msg)
Support protocol
|
default boolean |
canSupport(io.netty.channel.Channel channel)
Support protocol
|
default int |
getOrder()
default Priority order 0
|
String |
getProtocolName()
Get the protocol name
|
String getProtocolName()
boolean canSupport(io.netty.buffer.ByteBuf msg)
msg - client first messagedefault boolean canSupport(io.netty.channel.Channel channel)
channel - channelvoid addPipeline(io.netty.channel.Channel channel)
throws Exception
channel - TCP channelException - ExceptionCopyright © 2021. All rights reserved.