Better method names
This commit is contained in:
parent
47045e12cd
commit
59e511fdc6
@ -28,7 +28,7 @@ public abstract class ChannelInboundMessageHandlerAdapter<I>
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception {
|
public final void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception {
|
||||||
firstMessageReceived(ctx);
|
beginMessageReceived(ctx);
|
||||||
|
|
||||||
MessageBuf<I> in = ctx.inboundMessageBuffer();
|
MessageBuf<I> in = ctx.inboundMessageBuffer();
|
||||||
for (;;) {
|
for (;;) {
|
||||||
@ -43,10 +43,10 @@ public abstract class ChannelInboundMessageHandlerAdapter<I>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lastMessageReceived(ctx);
|
endMessageReceived(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void firstMessageReceived(ChannelHandlerContext ctx) throws Exception { }
|
public void beginMessageReceived(ChannelHandlerContext ctx) throws Exception { }
|
||||||
public abstract void messageReceived(ChannelHandlerContext ctx, I msg) throws Exception;
|
public abstract void messageReceived(ChannelHandlerContext ctx, I msg) throws Exception;
|
||||||
public void lastMessageReceived(ChannelHandlerContext ctx) throws Exception { }
|
public void endMessageReceived(ChannelHandlerContext ctx) throws Exception { }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user