public void setRepeatToleranceEnabled(boolean enabled) {
    repeatToleranceEnabled = enabled ? Short.valueOf((short) 1) : 0;
  }
Sets whether this definition overrides the default global tolerance value
specified in {@code cluster-env/alerts.repeat.tolerance}. If enabled, the
value from {@link #getRepeatTolerance()} should be used to calculate retry
tolerance.

@param enabled
         {@code true} to override the defautlt value and use the value
         returned from {@link #getRepeatTolerance()}.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java