Refactor Journal interface 43/111643/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 6 May 2024 18:59:16 +0000 (20:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2024 20:58:00 +0000 (22:58 +0200)
commit2cdb3460a95fae6dd556ca9e0e20c042ec63ed22
tree55345d63209653e4f06dd3983aeeabff2a382d60
parentbc005c333cb76e64b48eac215f7f8b938f7a4142
Refactor Journal interface

There are two basic issues:
- isOpen() is completely unused
- close() is inherited from Closeable, not AutoCloseable

Address these and move implementation of openReader(long), so it
is canonical.

JIRA: CONTROLLER-2100
Change-Id: I1468ed5a3e9ee1abefe35a4bfaf653696763907f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
atomix-storage/src/main/java/io/atomix/storage/journal/Journal.java
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedJournal.java