public RemoteTableDescriptor<K, V, U> withWriteRetryPolicy(TableRetryPolicy retryPolicy) {
    Preconditions.checkNotNull(writeFn, "null write function");
    Preconditions.checkNotNull(retryPolicy, "null retry policy");
    this.writeRetryPolicy = retryPolicy;
    return this;
  }
Use specified {@link TableRetryPolicy} with the {@link TableWriteFunction}.
@param retryPolicy retry policy for the write function
@return this table descriptor instance
samza-api/src/main/java/org/apache/samza/table/descriptors/RemoteTableDescriptor.java