Guest User

Untitled

a guest
Dec 14th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public void inboundBufferUpdated(ChannelHandlerContext ctx) {
  2. if (ctx.hasInboundByteBuffer()) {
  3. ByteBuf buf = ctx.inboundByteBuffer();
  4. ...
  5. } else {
  6. Queue<MyMessage> buf = ctx.inboundMessageBuffer();
  7. for (;;) {
  8. MyMessage msg = buf.poll();
  9. if (msg == null) {
  10. break;
  11. }
  12. ...
  13. }
  14. }
  15. }
Add Comment
Please, Sign In to add comment