Disconnect JournalSegmentReader from JournalReader 89/110589/4
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Mar 2024 10:28:37 +0000 (11:28 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 11 Mar 2024 12:51:31 +0000 (13:51 +0100)
commitf00cb3b9fb1237ee90b2c8bc07821213b4345fb0
tree0d70efb6c54c2d6b0afbc8c3947075a040b24140
parent2e8a82c1b46bedf40e5e3d51f03efae75d72ca48
Disconnect JournalSegmentReader from JournalReader

JournalSegmentReader is the only used by SegmentedJournalReader, which
is the actual implementation of JournalReader.

There is really no point in JournalSegmentReader to conform to the
public API, as not all elements are needed.

This disconnects JournalSegmentReader, eliminating getFirstIndex(), as
that is simply not called -- and was not conforming to the API anyway.

JIRA: CONTROLLER-2098
Change-Id: Icd802ee07207d4f6787e3bdb71e36e553f2010c3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
atomix-storage/src/main/java/io/atomix/storage/journal/JournalSegmentReader.java