ReplayingDecoder which use an Unmarshaller to read the Object out of the ByteBuf.
If you can you should use MarshallingDecoder.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected final int | |
| protected final UnmarshallerProvider |
| Access | Constructor and Description |
|---|---|
| public | CompatibleMarshallingDecoder(UnmarshallerProvider provider, int
the maximal size (in bytes) of the maxObjectSize)Object to unmarshal. Once the size is
exceeded the Channel will get closed. Use a maxObjectSize of
Integer#MAX_VALUE to disable this. You should only do this if you are sure
that the received Objects will never be big and the sending side are trusted, as this
opens the possibility for a DOS-Attack due an OutOfMemoryError.Create a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe buffer, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. ByteBuf to an other.
|
| protected void | decodeLast(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out)
Overrides io. ChannelHandlerContext goes in-active.
|
| public void | exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides io. Implements io. ChannelHandlerContext#fireExceptionCaught(Throwable) to forward
to the next ChannelHandler in the ChannelPipeline.
|
| discardingTooLongFrame | back to summary |
|---|---|
| private boolean discardingTooLongFrame | |
| maxObjectSize | back to summary |
|---|---|
| protected final int maxObjectSize | |
| provider | back to summary |
|---|---|
| protected final UnmarshallerProvider provider | |
| CompatibleMarshallingDecoder | back to summary |
|---|---|
| public CompatibleMarshallingDecoder(UnmarshallerProvider provider, int maxObjectSize) Create a new instance of
| |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| decodeLast | back to summary |
|---|---|
| protected void decodeLast(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> out) throws Exception Overrides io. Doc from io. Is called one last time when the
| |
| exceptionCaught | back to summary |
|---|---|
| public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception Overrides io. Implements io. Doc from io. Calls
| |