You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/10 10:44:56 UTC

[GitHub] [camel] oscerd commented on a change in pull request #6413: CAMEL-17185 Add an option for customizing retryable PubSub server errors

oscerd commented on a change in pull request #6413:
URL: https://github.com/apache/camel/pull/6413#discussion_r746466497



##########
File path: components/camel-google/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubComponent.java
##########
@@ -87,6 +91,11 @@
               description = "How many milliseconds should a producer be allowed to terminate.")
     private int publisherTerminationTimeout = 60000;
 
+    @Metadata(
+              label = "consumer",
+              description = "Additional retryable error codes for synchronous pull. By default the PubSub client library retries ABORTED, UNAVAILABLE, UNKNOWN")
+    private StatusCode.Code[] synchronousPullRetryableCodes = new StatusCode.Code[0];

Review comment:
       I wouldn't use internals classes for Camel option. It makes more sense to set them as Strings and then convert when it's time to use them. If we start going down this path, it will be a mess in all components. So please use a different approach. Thanks.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org