mikemccand commented on PR #12345: URL: https://github.com/apache/lucene/pull/12345#issuecomment-1771091088
I don't think you need to wrap `ReaderContext` classes -- you can create your new `TimeoutLeafReader` class, subclassing `FilterLeafReader`, and overriding the methods (likely with additional wrapping on their returned objects?) that are needing added timeouts. Then a call lke `reader().getContext().leaves().reader()` will return your `TimeoutLeafReader` but it will implement all necessary functionality of a `LeafReader`. -- 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. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org