Remove JournalWriter.append(Indexed)
[controller.git] / atomix-storage / src / main / java / io / atomix / storage / journal / JournalWriter.java
index efb566efa9d5de8dc06183e28b319b914327649d..95284978bd9af283b696366b85d80acb7cde5ffc 100644 (file)
@@ -20,8 +20,7 @@ package io.atomix.storage.journal;
  *
  * @author <a href="http://github.com/kuujo">Jordan Halterman</a>
  */
-public interface JournalWriter<E> extends AutoCloseable {
-
+public interface JournalWriter<E> {
   /**
    * Returns the last written index.
    *
@@ -51,13 +50,6 @@ public interface JournalWriter<E> extends AutoCloseable {
    */
   <T extends E> Indexed<T> append(T entry);
 
-  /**
-   * Appends an indexed entry to the log.
-   *
-   * @param entry The indexed entry to append.
-   */
-  void append(Indexed<E> entry);
-
   /**
    * Commits entries up to the given index.
    *
@@ -83,7 +75,4 @@ public interface JournalWriter<E> extends AutoCloseable {
    * Flushes written entries to disk.
    */
   void flush();
-
-  @Override
-  void close();
 }