public class SctpMessageCompletionHandler extends MessageToMessageDecoder<SctpMessage>
MessageToMessageDecoder which will take care of handle fragmented SctpMessages, so
only complete SctpMessages will be forwarded to the next
ChannelInboundHandler.ChannelHandler.Sharable| Constructor and Description |
|---|
SctpMessageCompletionHandler() |
SctpMessageCompletionHandler(int maxIncompleteSctpMessages,
int maxFragments)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(ChannelHandlerContext ctx,
SctpMessage msg,
List<Object> out)
Decode from one message to an other.
|
void |
exceptionCaught(ChannelHandlerContext ctx,
Throwable cause)
Calls
ChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline. |
void |
handlerRemoved(ChannelHandlerContext ctx)
Do nothing by default, sub-classes may override this method.
|
acceptInboundMessage, channelRead, channelReadCompletechannelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedpublic 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(ChannelHandlerContext ctx, SctpMessage msg, List<Object> out) throws Exception
MessageToMessageDecoderdecode in class MessageToMessageDecoder<SctpMessage>ctx - the ChannelHandlerContext which this MessageToMessageDecoder belongs tomsg - the message to decode to an other oneout - the List to which decoded messages should be addedException - is thrown if an error occurspublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception
ChannelHandlerAdapterhandlerRemoved in interface ChannelHandlerhandlerRemoved in class ChannelHandlerAdapterExceptionpublic void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
ChannelInboundHandlerAdapterChannelHandlerContext.fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.exceptionCaught in interface ChannelHandlerexceptionCaught in interface ChannelInboundHandlerexceptionCaught in class ChannelInboundHandlerAdapterExceptionCopyright © 2008–2026 The Netty Project. All rights reserved.