public TableRetryPolicy withRetryPredicate(RetryPredicate retryPredicate) {
    Preconditions.checkNotNull(retryPredicate);
    this.retryPredicate = retryPredicate;
    return this;
  }
Set the predicate to use for identifying retriable exceptions. If specified, table
retry logic will consult both such predicate and table function and retry will be
attempted if either option returns true.
@param retryPredicate predicate for retriable exception identification
@return this policy instance
samza-api/src/main/java/org/apache/samza/table/retry/TableRetryPolicy.java