feat(bigquery): Add custom ExceptionHandler to BigQueryOptions (#3937) · googleapis/java-bigquery@de0914d
@@ -293,7 +293,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
293293 }
294294 },
295295getOptions().getRetrySettings(),
296-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
296+getOptions().getResultRetryAlgorithm(),
297297getOptions().getClock(),
298298EMPTY_RETRY_CONFIG,
299299getOptions().isOpenTelemetryTracingEnabled(),
@@ -340,7 +340,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
340340 }
341341 },
342342getOptions().getRetrySettings(),
343-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
343+getOptions().getResultRetryAlgorithm(),
344344getOptions().getClock(),
345345EMPTY_RETRY_CONFIG,
346346getOptions().isOpenTelemetryTracingEnabled(),
@@ -396,7 +396,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
396396 }
397397 },
398398getOptions().getRetrySettings(),
399-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
399+getOptions().getResultRetryAlgorithm(),
400400getOptions().getClock(),
401401EMPTY_RETRY_CONFIG,
402402getOptions().isOpenTelemetryTracingEnabled(),
@@ -490,7 +490,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException {
490490 ? RetryOption.mergeToSettings(
491491getOptions().getRetrySettings(), getRetryOptions(optionsMap))
492492 : getOptions().getRetrySettings(),
493-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
493+getOptions().getResultRetryAlgorithm(),
494494getOptions().getClock(),
495495getBigQueryRetryConfig(optionsMap) != null
496496 ? getBigQueryRetryConfig(optionsMap)
@@ -586,7 +586,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
586586 }
587587 },
588588getOptions().getRetrySettings(),
589-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
589+getOptions().getResultRetryAlgorithm(),
590590getOptions().getClock(),
591591EMPTY_RETRY_CONFIG,
592592getOptions().isOpenTelemetryTracingEnabled(),
@@ -652,7 +652,7 @@ private static Page<Dataset> listDatasets(
652652 }
653653 },
654654serviceOptions.getRetrySettings(),
655-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
655+serviceOptions.getResultRetryAlgorithm(),
656656serviceOptions.getClock(),
657657EMPTY_RETRY_CONFIG,
658658serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -704,7 +704,7 @@ public Boolean call() throws IOException {
704704 }
705705 },
706706getOptions().getRetrySettings(),
707-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
707+getOptions().getResultRetryAlgorithm(),
708708getOptions().getClock(),
709709EMPTY_RETRY_CONFIG,
710710getOptions().isOpenTelemetryTracingEnabled(),
@@ -755,7 +755,7 @@ public Boolean call() throws IOException {
755755 }
756756 },
757757getOptions().getRetrySettings(),
758-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
758+getOptions().getResultRetryAlgorithm(),
759759getOptions().getClock(),
760760EMPTY_RETRY_CONFIG,
761761getOptions().isOpenTelemetryTracingEnabled(),
@@ -801,7 +801,7 @@ public Boolean call() throws IOException {
801801 }
802802 },
803803getOptions().getRetrySettings(),
804-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
804+getOptions().getResultRetryAlgorithm(),
805805getOptions().getClock(),
806806EMPTY_RETRY_CONFIG,
807807getOptions().isOpenTelemetryTracingEnabled(),
@@ -847,7 +847,7 @@ public Boolean call() throws IOException {
847847 }
848848 },
849849getOptions().getRetrySettings(),
850-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
850+getOptions().getResultRetryAlgorithm(),
851851getOptions().getClock(),
852852EMPTY_RETRY_CONFIG,
853853getOptions().isOpenTelemetryTracingEnabled(),
@@ -891,7 +891,7 @@ public Boolean call() throws IOException {
891891 }
892892 },
893893getOptions().getRetrySettings(),
894-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
894+getOptions().getResultRetryAlgorithm(),
895895getOptions().getClock(),
896896EMPTY_RETRY_CONFIG,
897897getOptions().isOpenTelemetryTracingEnabled(),
@@ -932,7 +932,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
932932 }
933933 },
934934getOptions().getRetrySettings(),
935-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
935+getOptions().getResultRetryAlgorithm(),
936936getOptions().getClock(),
937937EMPTY_RETRY_CONFIG,
938938getOptions().isOpenTelemetryTracingEnabled(),
@@ -979,7 +979,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
979979 }
980980 },
981981getOptions().getRetrySettings(),
982-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
982+getOptions().getResultRetryAlgorithm(),
983983getOptions().getClock(),
984984EMPTY_RETRY_CONFIG,
985985getOptions().isOpenTelemetryTracingEnabled(),
@@ -1025,7 +1025,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException {
10251025 }
10261026 },
10271027getOptions().getRetrySettings(),
1028-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1028+getOptions().getResultRetryAlgorithm(),
10291029getOptions().getClock(),
10301030EMPTY_RETRY_CONFIG,
10311031getOptions().isOpenTelemetryTracingEnabled(),
@@ -1071,7 +1071,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
10711071 }
10721072 },
10731073getOptions().getRetrySettings(),
1074-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1074+getOptions().getResultRetryAlgorithm(),
10751075getOptions().getClock(),
10761076EMPTY_RETRY_CONFIG,
10771077getOptions().isOpenTelemetryTracingEnabled(),
@@ -1125,7 +1125,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
11251125 }
11261126 },
11271127getOptions().getRetrySettings(),
1128-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1128+getOptions().getResultRetryAlgorithm(),
11291129getOptions().getClock(),
11301130EMPTY_RETRY_CONFIG,
11311131getOptions().isOpenTelemetryTracingEnabled(),
@@ -1184,7 +1184,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException {
11841184 }
11851185 },
11861186getOptions().getRetrySettings(),
1187-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1187+getOptions().getResultRetryAlgorithm(),
11881188getOptions().getClock(),
11891189EMPTY_RETRY_CONFIG,
11901190getOptions().isOpenTelemetryTracingEnabled(),
@@ -1243,7 +1243,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
12431243 }
12441244 },
12451245getOptions().getRetrySettings(),
1246-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1246+getOptions().getResultRetryAlgorithm(),
12471247getOptions().getClock(),
12481248EMPTY_RETRY_CONFIG,
12491249getOptions().isOpenTelemetryTracingEnabled(),
@@ -1461,7 +1461,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Table>> cal
14611461 }
14621462 },
14631463serviceOptions.getRetrySettings(),
1464-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1464+serviceOptions.getResultRetryAlgorithm(),
14651465serviceOptions.getClock(),
14661466EMPTY_RETRY_CONFIG,
14671467serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -1502,7 +1502,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Model>> cal
15021502 }
15031503 },
15041504serviceOptions.getRetrySettings(),
1505-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1505+serviceOptions.getResultRetryAlgorithm(),
15061506serviceOptions.getClock(),
15071507EMPTY_RETRY_CONFIG,
15081508serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -1543,7 +1543,7 @@ private static Page<Routine> listRoutines(
15431543 }
15441544 },
15451545serviceOptions.getRetrySettings(),
1546-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1546+serviceOptions.getResultRetryAlgorithm(),
15471547serviceOptions.getClock(),
15481548EMPTY_RETRY_CONFIG,
15491549serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -1625,7 +1625,7 @@ public TableDataInsertAllResponse call() throws Exception {
16251625 }
16261626 },
16271627getOptions().getRetrySettings(),
1628-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1628+getOptions().getResultRetryAlgorithm(),
16291629getOptions().getClock(),
16301630EMPTY_RETRY_CONFIG,
16311631getOptions().isOpenTelemetryTracingEnabled(),
@@ -1719,7 +1719,7 @@ public TableDataList call() throws IOException {
17191719 }
17201720 },
17211721serviceOptions.getRetrySettings(),
1722-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1722+serviceOptions.getResultRetryAlgorithm(),
17231723serviceOptions.getClock(),
17241724EMPTY_RETRY_CONFIG,
17251725serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -1793,7 +1793,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException {
17931793 }
17941794 },
17951795getOptions().getRetrySettings(),
1796-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1796+getOptions().getResultRetryAlgorithm(),
17971797getOptions().getClock(),
17981798EMPTY_RETRY_CONFIG,
17991799getOptions().isOpenTelemetryTracingEnabled(),
@@ -1850,7 +1850,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Job>> call(
18501850 }
18511851 },
18521852serviceOptions.getRetrySettings(),
1853-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1853+serviceOptions.getResultRetryAlgorithm(),
18541854serviceOptions.getClock(),
18551855EMPTY_RETRY_CONFIG,
18561856serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -1905,7 +1905,7 @@ public Boolean call() throws IOException {
19051905 }
19061906 },
19071907getOptions().getRetrySettings(),
1908-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1908+getOptions().getResultRetryAlgorithm(),
19091909getOptions().getClock(),
19101910EMPTY_RETRY_CONFIG,
19111911getOptions().isOpenTelemetryTracingEnabled(),
@@ -1992,7 +1992,7 @@ public com.google.api.services.bigquery.model.QueryResponse call()
19921992 }
19931993 },
19941994getOptions().getRetrySettings(),
1995-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
1995+getOptions().getResultRetryAlgorithm(),
19961996getOptions().getClock(),
19971997DEFAULT_RETRY_CONFIG,
19981998getOptions().isOpenTelemetryTracingEnabled(),
@@ -2169,7 +2169,7 @@ public GetQueryResultsResponse call() throws IOException {
21692169 }
21702170 },
21712171serviceOptions.getRetrySettings(),
2172-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
2172+serviceOptions.getResultRetryAlgorithm(),
21732173serviceOptions.getClock(),
21742174DEFAULT_RETRY_CONFIG,
21752175serviceOptions.isOpenTelemetryTracingEnabled(),
@@ -2240,7 +2240,7 @@ public com.google.api.services.bigquery.model.Policy call() throws IOException {
22402240 }
22412241 },
22422242getOptions().getRetrySettings(),
2243-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
2243+getOptions().getResultRetryAlgorithm(),
22442244getOptions().getClock(),
22452245EMPTY_RETRY_CONFIG,
22462246getOptions().isOpenTelemetryTracingEnabled(),
@@ -2286,7 +2286,7 @@ public com.google.api.services.bigquery.model.Policy call() throws IOException {
22862286 }
22872287 },
22882288getOptions().getRetrySettings(),
2289-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
2289+getOptions().getResultRetryAlgorithm(),
22902290getOptions().getClock(),
22912291EMPTY_RETRY_CONFIG,
22922292getOptions().isOpenTelemetryTracingEnabled(),
@@ -2334,7 +2334,7 @@ public com.google.api.services.bigquery.model.TestIamPermissionsResponse call()
23342334 }
23352335 },
23362336getOptions().getRetrySettings(),
2337-BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
2337+getOptions().getResultRetryAlgorithm(),
23382338getOptions().getClock(),
23392339EMPTY_RETRY_CONFIG,
23402340getOptions().isOpenTelemetryTracingEnabled(),