Skip to content

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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)