Skip to content

Commit

Permalink
fix: [apigee-registry] additional error codes added to service config…
Browse files Browse the repository at this point in the history
…uration for retry (googleapis#8272)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 471585446

Source-Link: googleapis/googleapis@e1b54cd

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5cf9f3d16d4414508889245a7ac5ae36f4d886ee
Copy-Tag: eyJwIjoiamF2YS1hcGlnZWUtcmVnaXN0cnkvLk93bEJvdC55YW1sIiwiaCI6IjVjZjlmM2QxNmQ0NDE0NTA4ODg5MjQ1YTdhYzVhZTM2ZjRkODg2ZWUifQ==
  • Loading branch information
gcf-owl-bot[bot] authored Sep 2, 2022
1 parent 285a353 commit a048a4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions java-apigee-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-apigee-registry</artifactId>
<version>0.2.2</version>
<version>0.3.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-apigee-registry:0.2.2'
implementation 'com.google.cloud:google-cloud-apigee-registry:0.3.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.2.2"
libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.3.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,12 @@ public static class Builder extends StubSettings.Builder<RegistryStubSettings, B
ImmutableMap.builder();
definitions.put(
"retry_policy_0_codes",
ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList(StatusCode.Code.UNAVAILABLE)));
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.ABORTED,
StatusCode.Code.CANCELLED,
StatusCode.Code.DEADLINE_EXCEEDED,
StatusCode.Code.UNAVAILABLE)));
definitions.put(
"no_retry_1_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.<StatusCode.Code>newArrayList()));
Expand All @@ -1162,7 +1167,7 @@ public static class Builder extends StubSettings.Builder<RegistryStubSettings, B
RetrySettings settings = null;
settings =
RetrySettings.newBuilder()
.setInitialRetryDelay(Duration.ofMillis(1000L))
.setInitialRetryDelay(Duration.ofMillis(200L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(60000L))
.setInitialRpcTimeout(Duration.ofMillis(60000L))
Expand Down

0 comments on commit a048a4e

Please sign in to comment.