Skip to content

Commit dc01c5e

Browse files
committed
docs(bigquery): add javadoc comment to wrapDefaultAlgorithm
1 parent fdcde0a commit dc01c5e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ static <V> ResultRetryAlgorithm<V> maybeWrapForHttpRetry(ResultRetryAlgorithm<V>
136136
return algorithm;
137137
}
138138

139+
/**
140+
* Wraps the default retry algorithm to additionally retry on transient HTTP status codes 500,
141+
* 502, 503, and 504. Other retry decisions and timing logic are delegated back to the default
142+
* algorithm.
143+
*/
139144
private static <V> ResultRetryAlgorithm<V> wrapDefaultAlgorithm(
140145
ResultRetryAlgorithm<V> defaultAlgorithm) {
141146
return new ResultRetryAlgorithm<V>() {

0 commit comments

Comments
 (0)