private void fireHandleSnapshot(SnapshotReader<T> reader) {
            synchronized (this) {
                nextOffset = reader.snapshotId().offset();
                lastSent = null;
            }

            logger.debug("Notifying listener {} of snapshot {}", listenerName(), reader.snapshotId());
            listener.handleLoadSnapshot(reader);
        }
This API is used when the Listener needs to be notified of a new snapshot. This happens
when the context's next offset is less than the log start offset.
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java