Skip to content

Commit d5b5af6

Browse files
anguillanneufkolea2
authored andcommitted
---
yaml --- r: 20057 b: refs/heads/autosynth-os-login c: 33202fb h: refs/heads/master i: 20055: 0054244
1 parent c174671 commit d5b5af6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ refs/heads/autosynth-firestore: d1a44f9acc302750e37b008ecb9c1aa535cc94df
135135
refs/heads/autosynth-iot: f03bdd338a9056ca3b7ea6d9ca901649ba9aab78
136136
refs/heads/autosynth-kms: 2828edfe3d2c53dd6e71912eae8a53c87bf40c87
137137
refs/heads/autosynth-language: c3d990dd34d81e7e935041e7147fb9dd27f8a557
138-
refs/heads/autosynth-os-login: 4a21c106d0951e0578386cf54d521dc798904404
138+
refs/heads/autosynth-os-login: 33202fb69f277dd788c8d30edee47c06d1eaf641
139139
refs/heads/autosynth-redis: 0cdb2e47359d51b73763bcea8af3de62aa99119b
140140
refs/heads/autosynth-scheduler: d97f8743ba965c7d5e492c8dc1f51d023104e260
141141
refs/heads/autosynth-spanner: 9bff86d057df31e04c76d72865e8e073ac5794fb

branches/autosynth-os-login/google-cloud-examples/src/main/java/com/google/cloud/examples/pubsub/snippets/PublisherSnippets.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ public Publisher getPublisherWithCustomRetrySettings(ProjectTopicName topicName)
113113
throws Exception {
114114
// [START pubsub_publisher_retry_settings]
115115
// Retry settings control how the publisher handles retryable failures
116-
Duration retryDelay = Duration.ofMillis(100); // default : 1 ms
117-
double retryDelayMultiplier = 2.0; // back off for repeated failures
118-
Duration maxRetryDelay = Duration.ofSeconds(5); // default : 10 seconds
119-
Duration totalTimeout = Duration.ofSeconds(1); // default: 0
120-
Duration initialRpcTimeout = Duration.ofSeconds(1); // default: 0
121-
Duration maxRpcTimeout = Duration.ofSeconds(10); // default: 0
116+
Duration retryDelay = Duration.ofMillis(5); // default: 5 ms
117+
double retryDelayMultiplier = 2.0; // back off for repeated failures, default: 2.0
118+
Duration maxRetryDelay = Duration.ofSeconds(600); // default : Long.MAX_VALUE
119+
Duration totalTimeout = Duration.ofSeconds(10); // default: 10 seconds
120+
Duration initialRpcTimeout = Duration.ofSeconds(10); // default: 10 seconds
121+
Duration maxRpcTimeout = Duration.ofSeconds(10); // default: 10 seconds
122122

123123
RetrySettings retrySettings =
124124
RetrySettings.newBuilder()

0 commit comments

Comments
 (0)