public class SctpMessageCompletionHandler extends io.netty.handler.codec.MessageToMessageDecoder<SctpMessage>
MessageToMessageDecoder which will take care of handle fragmented SctpMessages, so
only complete SctpMessages will be forwarded to the next
ChannelInboundHandler.| Constructor and Description |
|---|
SctpMessageCompletionHandler() |
SctpMessageCompletionHandler(int maxIncompleteSctpMessages,
int maxFragments)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
SctpMessage msg,
List<Object> out) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelRead, channelReadCompletechannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, isSharablepublic SctpMessageCompletionHandler()
public SctpMessageCompletionHandler(int maxIncompleteSctpMessages,
int maxFragments)
maxIncompleteSctpMessages - the maximum number of incomplete sctp message inflight.maxFragments - the maximum number of fragments per sctp message.protected void decode(io.netty.channel.ChannelHandlerContext ctx,
SctpMessage msg,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.MessageToMessageDecoder<SctpMessage>Exceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2008–2026 The Netty Project. All rights reserved.