@Override
    public OffsetAndEpoch snapshotId() {
        return writer.snapshotId();
    }
Constructs a {@code RawSnapshotWriter}.

@param writer the raw snapshot writer
@param callback the consumer to call when freeze succeeds
raft/src/main/java/org/apache/kafka/snapshot/NotifyingRawSnapshotWriter.java