feat(bigquery): Add custom ExceptionHandler to BigQueryOptions (#3937) · googleapis/java-bigquery@de0914d (original) (raw)
`@@ -293,7 +293,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
`
293
293
` }
`
294
294
` },
`
295
295
`getOptions().getRetrySettings(),
`
296
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
296
`+
getOptions().getResultRetryAlgorithm(),
`
297
297
`getOptions().getClock(),
`
298
298
`EMPTY_RETRY_CONFIG,
`
299
299
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -340,7 +340,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
`
340
340
` }
`
341
341
` },
`
342
342
`getOptions().getRetrySettings(),
`
343
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
343
`+
getOptions().getResultRetryAlgorithm(),
`
344
344
`getOptions().getClock(),
`
345
345
`EMPTY_RETRY_CONFIG,
`
346
346
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -396,7 +396,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
`
396
396
` }
`
397
397
` },
`
398
398
`getOptions().getRetrySettings(),
`
399
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
399
`+
getOptions().getResultRetryAlgorithm(),
`
400
400
`getOptions().getClock(),
`
401
401
`EMPTY_RETRY_CONFIG,
`
402
402
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -490,7 +490,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException {
`
490
490
` ? RetryOption.mergeToSettings(
`
491
491
`getOptions().getRetrySettings(), getRetryOptions(optionsMap))
`
492
492
` : getOptions().getRetrySettings(),
`
493
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
493
`+
getOptions().getResultRetryAlgorithm(),
`
494
494
`getOptions().getClock(),
`
495
495
`getBigQueryRetryConfig(optionsMap) != null
`
496
496
` ? getBigQueryRetryConfig(optionsMap)
`
`@@ -586,7 +586,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
`
586
586
` }
`
587
587
` },
`
588
588
`getOptions().getRetrySettings(),
`
589
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
589
`+
getOptions().getResultRetryAlgorithm(),
`
590
590
`getOptions().getClock(),
`
591
591
`EMPTY_RETRY_CONFIG,
`
592
592
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -652,7 +652,7 @@ private static Page listDatasets(
`
652
652
` }
`
653
653
` },
`
654
654
`serviceOptions.getRetrySettings(),
`
655
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
655
`+
serviceOptions.getResultRetryAlgorithm(),
`
656
656
`serviceOptions.getClock(),
`
657
657
`EMPTY_RETRY_CONFIG,
`
658
658
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -704,7 +704,7 @@ public Boolean call() throws IOException {
`
704
704
` }
`
705
705
` },
`
706
706
`getOptions().getRetrySettings(),
`
707
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
707
`+
getOptions().getResultRetryAlgorithm(),
`
708
708
`getOptions().getClock(),
`
709
709
`EMPTY_RETRY_CONFIG,
`
710
710
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -755,7 +755,7 @@ public Boolean call() throws IOException {
`
755
755
` }
`
756
756
` },
`
757
757
`getOptions().getRetrySettings(),
`
758
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
758
`+
getOptions().getResultRetryAlgorithm(),
`
759
759
`getOptions().getClock(),
`
760
760
`EMPTY_RETRY_CONFIG,
`
761
761
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -801,7 +801,7 @@ public Boolean call() throws IOException {
`
801
801
` }
`
802
802
` },
`
803
803
`getOptions().getRetrySettings(),
`
804
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
804
`+
getOptions().getResultRetryAlgorithm(),
`
805
805
`getOptions().getClock(),
`
806
806
`EMPTY_RETRY_CONFIG,
`
807
807
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -847,7 +847,7 @@ public Boolean call() throws IOException {
`
847
847
` }
`
848
848
` },
`
849
849
`getOptions().getRetrySettings(),
`
850
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
850
`+
getOptions().getResultRetryAlgorithm(),
`
851
851
`getOptions().getClock(),
`
852
852
`EMPTY_RETRY_CONFIG,
`
853
853
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -891,7 +891,7 @@ public Boolean call() throws IOException {
`
891
891
` }
`
892
892
` },
`
893
893
`getOptions().getRetrySettings(),
`
894
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
894
`+
getOptions().getResultRetryAlgorithm(),
`
895
895
`getOptions().getClock(),
`
896
896
`EMPTY_RETRY_CONFIG,
`
897
897
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -932,7 +932,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException
`
932
932
` }
`
933
933
` },
`
934
934
`getOptions().getRetrySettings(),
`
935
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
935
`+
getOptions().getResultRetryAlgorithm(),
`
936
936
`getOptions().getClock(),
`
937
937
`EMPTY_RETRY_CONFIG,
`
938
938
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -979,7 +979,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
`
979
979
` }
`
980
980
` },
`
981
981
`getOptions().getRetrySettings(),
`
982
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
982
`+
getOptions().getResultRetryAlgorithm(),
`
983
983
`getOptions().getClock(),
`
984
984
`EMPTY_RETRY_CONFIG,
`
985
985
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1025,7 +1025,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException {
`
1025
1025
` }
`
1026
1026
` },
`
1027
1027
`getOptions().getRetrySettings(),
`
1028
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1028
`+
getOptions().getResultRetryAlgorithm(),
`
1029
1029
`getOptions().getClock(),
`
1030
1030
`EMPTY_RETRY_CONFIG,
`
1031
1031
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1071,7 +1071,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
`
1071
1071
` }
`
1072
1072
` },
`
1073
1073
`getOptions().getRetrySettings(),
`
1074
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1074
`+
getOptions().getResultRetryAlgorithm(),
`
1075
1075
`getOptions().getClock(),
`
1076
1076
`EMPTY_RETRY_CONFIG,
`
1077
1077
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1125,7 +1125,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException {
`
1125
1125
` }
`
1126
1126
` },
`
1127
1127
`getOptions().getRetrySettings(),
`
1128
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1128
`+
getOptions().getResultRetryAlgorithm(),
`
1129
1129
`getOptions().getClock(),
`
1130
1130
`EMPTY_RETRY_CONFIG,
`
1131
1131
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1184,7 +1184,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException {
`
1184
1184
` }
`
1185
1185
` },
`
1186
1186
`getOptions().getRetrySettings(),
`
1187
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1187
`+
getOptions().getResultRetryAlgorithm(),
`
1188
1188
`getOptions().getClock(),
`
1189
1189
`EMPTY_RETRY_CONFIG,
`
1190
1190
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1243,7 +1243,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException
`
1243
1243
` }
`
1244
1244
` },
`
1245
1245
`getOptions().getRetrySettings(),
`
1246
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1246
`+
getOptions().getResultRetryAlgorithm(),
`
1247
1247
`getOptions().getClock(),
`
1248
1248
`EMPTY_RETRY_CONFIG,
`
1249
1249
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1461,7 +1461,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Table>> cal
`
1461
1461
` }
`
1462
1462
` },
`
1463
1463
`serviceOptions.getRetrySettings(),
`
1464
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1464
`+
serviceOptions.getResultRetryAlgorithm(),
`
1465
1465
`serviceOptions.getClock(),
`
1466
1466
`EMPTY_RETRY_CONFIG,
`
1467
1467
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -1502,7 +1502,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Model>> cal
`
1502
1502
` }
`
1503
1503
` },
`
1504
1504
`serviceOptions.getRetrySettings(),
`
1505
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1505
`+
serviceOptions.getResultRetryAlgorithm(),
`
1506
1506
`serviceOptions.getClock(),
`
1507
1507
`EMPTY_RETRY_CONFIG,
`
1508
1508
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -1543,7 +1543,7 @@ private static Page listRoutines(
`
1543
1543
` }
`
1544
1544
` },
`
1545
1545
`serviceOptions.getRetrySettings(),
`
1546
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1546
`+
serviceOptions.getResultRetryAlgorithm(),
`
1547
1547
`serviceOptions.getClock(),
`
1548
1548
`EMPTY_RETRY_CONFIG,
`
1549
1549
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -1625,7 +1625,7 @@ public TableDataInsertAllResponse call() throws Exception {
`
1625
1625
` }
`
1626
1626
` },
`
1627
1627
`getOptions().getRetrySettings(),
`
1628
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1628
`+
getOptions().getResultRetryAlgorithm(),
`
1629
1629
`getOptions().getClock(),
`
1630
1630
`EMPTY_RETRY_CONFIG,
`
1631
1631
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1719,7 +1719,7 @@ public TableDataList call() throws IOException {
`
1719
1719
` }
`
1720
1720
` },
`
1721
1721
`serviceOptions.getRetrySettings(),
`
1722
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1722
`+
serviceOptions.getResultRetryAlgorithm(),
`
1723
1723
`serviceOptions.getClock(),
`
1724
1724
`EMPTY_RETRY_CONFIG,
`
1725
1725
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -1793,7 +1793,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException {
`
1793
1793
` }
`
1794
1794
` },
`
1795
1795
`getOptions().getRetrySettings(),
`
1796
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1796
`+
getOptions().getResultRetryAlgorithm(),
`
1797
1797
`getOptions().getClock(),
`
1798
1798
`EMPTY_RETRY_CONFIG,
`
1799
1799
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1850,7 +1850,7 @@ public Tuple<String, Iterable<com.google.api.services.bigquery.model.Job>> call(
`
1850
1850
` }
`
1851
1851
` },
`
1852
1852
`serviceOptions.getRetrySettings(),
`
1853
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1853
`+
serviceOptions.getResultRetryAlgorithm(),
`
1854
1854
`serviceOptions.getClock(),
`
1855
1855
`EMPTY_RETRY_CONFIG,
`
1856
1856
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -1905,7 +1905,7 @@ public Boolean call() throws IOException {
`
1905
1905
` }
`
1906
1906
` },
`
1907
1907
`getOptions().getRetrySettings(),
`
1908
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1908
`+
getOptions().getResultRetryAlgorithm(),
`
1909
1909
`getOptions().getClock(),
`
1910
1910
`EMPTY_RETRY_CONFIG,
`
1911
1911
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -1992,7 +1992,7 @@ public com.google.api.services.bigquery.model.QueryResponse call()
`
1992
1992
` }
`
1993
1993
` },
`
1994
1994
`getOptions().getRetrySettings(),
`
1995
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
1995
`+
getOptions().getResultRetryAlgorithm(),
`
1996
1996
`getOptions().getClock(),
`
1997
1997
`DEFAULT_RETRY_CONFIG,
`
1998
1998
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -2169,7 +2169,7 @@ public GetQueryResultsResponse call() throws IOException {
`
2169
2169
` }
`
2170
2170
` },
`
2171
2171
`serviceOptions.getRetrySettings(),
`
2172
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
2172
`+
serviceOptions.getResultRetryAlgorithm(),
`
2173
2173
`serviceOptions.getClock(),
`
2174
2174
`DEFAULT_RETRY_CONFIG,
`
2175
2175
`serviceOptions.isOpenTelemetryTracingEnabled(),
`
`@@ -2240,7 +2240,7 @@ public com.google.api.services.bigquery.model.Policy call() throws IOException {
`
2240
2240
` }
`
2241
2241
` },
`
2242
2242
`getOptions().getRetrySettings(),
`
2243
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
2243
`+
getOptions().getResultRetryAlgorithm(),
`
2244
2244
`getOptions().getClock(),
`
2245
2245
`EMPTY_RETRY_CONFIG,
`
2246
2246
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -2286,7 +2286,7 @@ public com.google.api.services.bigquery.model.Policy call() throws IOException {
`
2286
2286
` }
`
2287
2287
` },
`
2288
2288
`getOptions().getRetrySettings(),
`
2289
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
2289
`+
getOptions().getResultRetryAlgorithm(),
`
2290
2290
`getOptions().getClock(),
`
2291
2291
`EMPTY_RETRY_CONFIG,
`
2292
2292
`getOptions().isOpenTelemetryTracingEnabled(),
`
`@@ -2334,7 +2334,7 @@ public com.google.api.services.bigquery.model.TestIamPermissionsResponse call()
`
2334
2334
` }
`
2335
2335
` },
`
2336
2336
`getOptions().getRetrySettings(),
`
2337
``
`-
BigQueryBaseService.BIGQUERY_EXCEPTION_HANDLER,
`
``
2337
`+
getOptions().getResultRetryAlgorithm(),
`
2338
2338
`getOptions().getClock(),
`
2339
2339
`EMPTY_RETRY_CONFIG,
`
2340
2340
`getOptions().isOpenTelemetryTracingEnabled(),
`