public List<Long> epochsList() {
        List<Long> result = new ArrayList<>();
        for (Iterator<Snapshot> iterator = iterator(); iterator.hasNext(); ) {
            result.add(iterator.next().epoch());
        }
        return result;
    }
Returns a sorted list of snapshot epochs.
server-common/src/main/java/org/apache/kafka/timeline/SnapshotRegistry.java