@ Nonnull public static TransactionOptions create ( int numberOfAttempts ) { Preconditions . checkArgument ( numberOfAttempts > 0 , "You must allow at least one attempt" ) ; return new TransactionOptions ( numberOfAttempts , null , null ) ; }
Create a default set of options with a custom number of retry attempts .