public void lastOptimizingTime(OptimizingType processType, long lastTime) {
    switch (processType) {
      case MINOR:
        this.lastMinorTime = lastTime;
        break;
      case MAJOR:
        this.lastMajorTime = lastTime;
        break;
      case FULL:
        this.lastFullTime = lastTime;
        break;
    }
  }
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