Skip to content

Instantly share code, notes, and snippets.

@mikeb01
Created April 28, 2015 04:06
Show Gist options
  • Save mikeb01/b5d6a2625f63e8adb926 to your computer and use it in GitHub Desktop.
Save mikeb01/b5d6a2625f63e8adb926 to your computer and use it in GitHub Desktop.
RingBuffer<ValueEvent<String>> ringBuffer = new RingBuffer<>(...);
String data = "ABC";
ringBuffer.publishEvent((event, seq, arg) -> event.set(arg), data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment