public void lastOptimizingSnapshotTime(Snapshot snapshot) {
    if (snapshot == null) {
      return;
    }

    this.lastOptimizingTime =
        Longs.max(
            lastOptimizingTime,
            snapshot.timestampMillis(),
            Longs.max(lastMinorTime, lastMajorTime, lastFullTime));
  }
Handle table self optimizing process complete event.

@param processType optimizing process type.
@param lastTime last optimizing timestamp.
amoro-ams/src/main/java/org/apache/amoro/server/table/TableOptimizingMetrics.java