@Override
    public Long getValue() {
      if (lastNonMaintainedTime == AmoroServiceConstants.INVALID_TIME
          || lastOptimizingTime == AmoroServiceConstants.INVALID_TIME) {
        return AmoroServiceConstants.INVALID_TIME;
      } else {
        return lastNonMaintainedTime - lastOptimizingTime;
      }
    }
Handle table self optimizing process completed event.

@param processType optimizing process type.
@param success is optimizing process success.
amoro-ams/src/main/java/org/apache/amoro/server/table/TableOptimizingMetrics.java