docs(sample): add custom retry algo samples#3948
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
|
The sample and test will not build since the version of the sdk that the samples refer to has not been updated to include the PR that introduced the custom exception handler. This should be fixed when the samples are updated to refer to the latest version of the sdk. |
| public class SetCustomRetryAlgorithm { | ||
| // In order to use a custom retry algorithm, you must implement a custom | ||
| // Interceptor that implements the ExceptionHandler.Interceptor interface. | ||
| public static final ExceptionHandler.Interceptor EXCEPTION_HANDLER_INTERCEPTOR = |
There was a problem hiding this comment.
I think we can simplify this by using the publicly available one at:
https://github.com/googleapis/sdk-platform-java/blob/f18318660c05d0d8466e3ead7127f0747fac2e2e/java-core/google-cloud-core/src/main/java/com/google/cloud/BaseService.java#L30
Just mentions that they can optionally implement their own.
There was a problem hiding this comment.
Ah didn't know about this one, thanks! I put in a comment explaining how to implement your own.
|
Just realized, you might want to change the PR title to: |
|
/gcbrun |
No description provided.