public class SctpMessageCompletionHandler extends MessageToMessageDecoder<SctpMessage>
MessageToMessageDecoder将处理碎片SctpMessage s,因此只有完整的 SctpMessage s才会被转发到下一个ChannelInboundHandler 。
ChannelHandler.Sharable| Constructor and Description |
|---|
SctpMessageCompletionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext ctx, SctpMessage msg, java.util.List<java.lang.Object> out)
从一条消息解码到另一条消息。
|
acceptInboundMessage, channelReadchannelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedprotected void decode(ChannelHandlerContext ctx, SctpMessage msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
MessageToMessageDecoder
decode在课堂上
MessageToMessageDecoder<SctpMessage>
ctx - MessageToMessageDecoder所属的ChannelHandlerContext
msg - 解码到另一个的消息
out - 应该添加解码消息的
List
java.lang.Exception - 发生错误时抛出
Copyright © 2008–2018 The Netty Project. All rights reserved.