*
* @author <a href="http://github.com/kuujo">Jordan Halterman</a>
*/
-public class JournalSegment<E> implements AutoCloseable {
+final class JournalSegment<E> implements AutoCloseable {
private final JournalSegmentFile file;
private final JournalSegmentDescriptor descriptor;
private final StorageLevel storageLevel;
private final FileChannel channel;
private boolean open = true;
- public JournalSegment(
+ JournalSegment(
JournalSegmentFile file,
JournalSegmentDescriptor descriptor,
StorageLevel storageLevel,
import static java.util.Objects.requireNonNull;
import akka.persistence.PersistentRepr;
-import io.atomix.storage.journal.JournalSegment;
/**
* A single entry in the data journal. We do not store {@code persistenceId} for each entry, as that is a
- * journal-invariant, nor do we store {@code sequenceNr}, as that information is maintained by {@link JournalSegment}'s
- * index.
+ * journal-invariant, nor do we store {@code sequenceNr}, as that information is maintained by a particular journal
+ * segment's index.
*/
abstract sealed class DataJournalEntry {
/**