public interface DecodeBufferPolicy
Strategy defining the approach to discard bytes from the response aggregation
buffer in
CommandHandler.decode(ChannelHandlerContext ctx, ByteBuf buffer) to reclaim memory after various response decoding
phases.- Since:
- 6.0
- Author:
- Shaphan, Mark Paluch
-
Method Summary
Modifier and Type Method Description default voidafterCommandDecoded(ByteBuf buffer)Callback that is invoked after a command has been fully decoded.default voidafterDecoding(ByteBuf buffer)Callback that is invoked after leaving the decode loop.default voidafterPartialDecode(ByteBuf buffer)Callback that is invoked after partially decoding a command.
-
Method Details
-
afterPartialDecode
Callback that is invoked after partially decoding a command.- Parameters:
buffer- aggregation buffer
-
afterCommandDecoded
Callback that is invoked after a command has been fully decoded.- Parameters:
buffer- aggregation buffer
-
afterDecoding
Callback that is invoked after leaving the decode loop.- Parameters:
buffer- aggregation buffer
-