merlimat commented on issue #2041: Added ReadOnlyCursor to ManagedLedger
URL: https://github.com/apache/incubator-pulsar/pull/2041#issuecomment-402823268
 
 
   > If possible, can we extend ManagedCursor here and probably add docs to the 
method skipEntries .
   
   @rdhabalia the `ReadOnlyCursor` is much more limited in scope compared to 
`ManagedCursor` because it only allows to read entries but not to delete them 
(or move mark-delete position). 
   
   As @ivankelly pointed out, logically it should be `ManagedCursor`  that 
extends `ReadOnlyCursor`, though there is the problem of "skipEntries" which, 
for `ReadOnlyCursor` is just a bumper pointer operation while for 
`ManagedCursor` requires to update the mark-delete position. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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