*/
ByteBufReader openCommitsReader(long index);
+ /**
+ * Compacts the journal up to the given index.
+ *
+ * <p>
+ * The semantics of compaction are not specified by this interface.
+ *
+ * @param index The index up to which to compact the journal.
+ */
+ void compact(long index);
+
@Override
void close();
}