Delegate to the actual encoder/decoder if possible
This commit is contained in:
parent
102563ec8f
commit
5c2be33cae
@ -109,13 +109,7 @@ public abstract class MessageToMessageCodec<INBOUND_IN, INBOUND_OUT, OUTBOUND_IN
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void freeInboundBuffer(ChannelHandlerContext ctx) throws Exception {
|
public void freeInboundBuffer(ChannelHandlerContext ctx) throws Exception {
|
||||||
ctx.inboundMessageBuffer().free();
|
decoder.freeInboundBuffer(ctx);
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void inboundBufferUpdated(
|
|
||||||
ChannelHandlerContext ctx) throws Exception {
|
|
||||||
decoder.inboundBufferUpdated(ctx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -125,7 +119,13 @@ public abstract class MessageToMessageCodec<INBOUND_IN, INBOUND_OUT, OUTBOUND_IN
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void freeOutboundBuffer(ChannelHandlerContext ctx) throws Exception {
|
public void freeOutboundBuffer(ChannelHandlerContext ctx) throws Exception {
|
||||||
ctx.outboundMessageBuffer().free();
|
encoder.freeOutboundBuffer(ctx);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void inboundBufferUpdated(
|
||||||
|
ChannelHandlerContext ctx) throws Exception {
|
||||||
|
decoder.inboundBufferUpdated(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user