Introduce atomix.storage.journal.JournalSerdes
[controller.git] / third-party / atomix / storage / src / main / java / io / atomix / storage / journal / FileChannelJournalSegmentReader.java
index 98133546cfa64805d63d3bd340e6eae9ad71a62a..696ab45cdeb06cb7e895941cc8bbb94b61d902c2 100644 (file)
@@ -17,8 +17,6 @@ package io.atomix.storage.journal;
 
 import io.atomix.storage.journal.index.JournalIndex;
 import io.atomix.storage.journal.index.Position;
-import io.atomix.utils.serializer.Namespace;
-
 import java.io.IOException;
 import java.nio.BufferUnderflowException;
 import java.nio.ByteBuffer;
@@ -36,7 +34,7 @@ final class FileChannelJournalSegmentReader<E> implements JournalReader<E> {
   private final FileChannel channel;
   private final int maxEntrySize;
   private final JournalIndex index;
-  private final Namespace namespace;
+  private final JournalSerdes namespace;
   private final ByteBuffer memory;
   private final long firstIndex;
   private Indexed<E> currentEntry;
@@ -47,7 +45,7 @@ final class FileChannelJournalSegmentReader<E> implements JournalReader<E> {
       JournalSegment<E> segment,
       int maxEntrySize,
       JournalIndex index,
-      Namespace namespace) {
+      JournalSerdes namespace) {
     this.channel = channel;
     this.maxEntrySize = maxEntrySize;
     this.index = index;