Skip to content

Instantly share code, notes, and snippets.

@ashkrit
Created July 10, 2020 05:50
Show Gist options
  • Save ashkrit/27b6b9c4f373190afe48b128e7ce426a to your computer and use it in GitHub Desktop.
Save ashkrit/27b6b9c4f373190afe48b128e7ce426a to your computer and use it in GitHub Desktop.
public interface RecordContainer<T> extends Closeable {
boolean append(T message);
void read(RecordConsumer<T> reader);
void read(long offSet, RecordConsumer<T> reader);
default void close() {}
int size();
String formatName();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment