public Integer getMaxAttempts() {
    return maxAttempts;
  }
Termination after a fix number of attempts.
@return maximum number of attempts without success before giving up the operation or null if not set.
samza-api/src/main/java/org/apache/samza/table/retry/TableRetryPolicy.java