Settings

Theme

Show HN: Java RingBuffer implementation with optional FIFO like semantics

github.com

4 points by adamretter a year ago · 0 comments · 1 min read

Reader

Given a stream of events, for any event in the stream I needed to be able to obtain both the preceding and following n events. To achieve this, I developed this RingBuffer implementation. When operating in `ordered` mode it allows me to get the preceding n events, at that point, by then adding a listener to the RingBuffer I can then also get the following n events.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection