MountainOne commented on issue #1505: Split Message in sample code
URL: https://github.com/apache/rocketmq/issues/1505#issuecomment-544786088
 
 
   > My question is "does self-increase both nextIndex and currIndex work here ?
   
   It's not working here. If you do this, `next()` will return a` List` which 
does not contain any messages. This situation needs to be avoided as we always 
want a valid return value when we call `next()` in an iterator. The operation 
to abandon an invalid message  should be implemented in the inner iterator

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to