Better method names

This commit is contained in:
Trustin Lee 2012-08-30 14:18:04 +09:00
parent 47045e12cd
commit 59e511fdc6

View File

@ -28,7 +28,7 @@ public abstract class ChannelInboundMessageHandlerAdapter<I>
@Override
public final void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception {
firstMessageReceived(ctx);
beginMessageReceived(ctx);
MessageBuf<I> in = ctx.inboundMessageBuffer();
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 void lastMessageReceived(ChannelHandlerContext ctx) throws Exception { }
public void endMessageReceived(ChannelHandlerContext ctx) throws Exception { }
}