public void onSuccess(OperationType operationType, long operationTimeInMs) {
    if (operationType == OperationType.Write) {
      metrics.writeSuccessCount.inc();
      metrics.writeTimeMs.update(operationTimeInMs);
    } else if (operationType == OperationType.Read) {
      metrics.readSuccessCount.inc();
      metrics.readTimeMs.update(operationTimeInMs);
    } else if (operationType == OperationType.Copy) {
      metrics.copySuccessCount.inc();
      metrics.copyTimeMs.update(operationTimeInMs);
    } else if (operationType == OperationType.BatchUpdate) {
      metrics.batchUpdateSuccessCount.inc();
      metrics.batchUpdateTimeMs.update(operationTimeInMs);
    } else if (operationType == OperationType.Delete) {
      metrics.deleteSuccessCount.inc();
      metrics.deleteTimeMs.update(operationTimeInMs);
    }
  }
Handle successful database operation
@param operationType type of mysql operation
@param operationTimeInMs operation time in milliseconds
ambry-mysql/src/main/java/com/github/ambry/mysql/MySqlDataAccessor.java