Separate out RaftEntryMeta
[controller.git] / atomix-storage / src / main / java / io / atomix / storage / journal / FileReader.java
index dc44cca34a4010a858772fedf95585293dae84f9..da040371f15db89e8d6b88ca6a3fea65fb7c3de4 100644 (file)
@@ -46,6 +46,11 @@ abstract sealed class FileReader permits DiskFileReader, MappedFileReader {
      */
     abstract @NonNull ByteBuf read(int position, int size);
 
+    /**
+     * Releases resources associated with this writer.
+     */
+    abstract void release();
+
     @Override
     public final String toString() {
         return MoreObjects.toStringHelper(this).add("path", file.path()).toString();