src/main/java/software/amazon/qldb/RetryPolicy.java
public static RetryPolicy maxRetries(int maxRetries) {
        return RetryPolicy.builder()
                          .maxRetries(maxRetries)
                          .backoffStrategy(new DefaultQldbTransactionBackoffStrategy())
                          .build();
    }
/**
     * <p>Factory method to create a RetryPolicy with the maximum retry number that a transaction will be executed.</p>
     *
     * <b>Note:</b> The {@link DefaultQldbTransactionBackoffStrategy} backoff strategy will be used when creating the
     * RetryPolicy with this method.
     *
     * @param maxRetries Maximum number of times that the transaction will be retried.
     *
     * @return A retry policy instance
     */
Factory method to create a RetryPolicy with the maximum retry number that a transaction will be executed.
Note: The  DefaultQldbTransactionBackoffStrategy backoff strategy will be used when creating the
RetryPolicy with this method.

@param maxRetries Maximum number of times that the transaction will be retried.

@return A retry policy instance
Factory method to create a RetryPolicy with the maximum retry number that a transaction will be executed . Note : The DefaultQldbTransactionBackoffStrategy backoff strategy will be used when creating the RetryPolicy with this method . @param maxRetries Maximum number of times that the transaction will be retried . @return A retry policy instance
public static RetryPolicy maxRetries(int maxRetries) {
        return RetryPolicy.builder()
                          .maxRetries(maxRetries)
                          .backoffStrategy(new DefaultQldbTransactionBackoffStrategy())
                          .build();
    }
public static RetryPolicy maxRetries ( int maxRetries ) { return RetryPolicy . builder ( ) . maxRetries ( maxRetries ) . backoffStrategy ( new DefaultQldbTransactionBackoffStrategy ( ) ) . build ( ) ; }
<p>Factory method to create a RetryPolicy with the maximum retry number that a transaction will be executed.</p>
 <b>Note:</b> The {@link DefaultQldbTransactionBackoffStrategy} backoff strategy will be used when creating the
 RetryPolicy with this method.
<p > Factory method to create a RetryPolicy with the maximum retry number that a transaction will be executed . < / p > <b > Note : < / b > The { @link DefaultQldbTransactionBackoffStrategy } backoff strategy will be used when creating the RetryPolicy with this method .