Skip to content

com.google.cloud.RetryParams not found in google-cloud-core jar #2520

Description

@jmtiong

Hi! I am trying to implement my own RetryParams to alter the maximum number of reattempts made by my storage service. However, I could not import RetryParams and it could not be found anywhere even though it is stated in the docs, RetryParams.

Am I missing something or am I implementing the whole thing wrongly?

This is my code snippet:

storage = StorageOptions.newBuilder()
                .setCredentials(ServiceAccountCredentials.fromStream(new FileInputStream(credentialsPath)))
                .setRetryParams(RetryParams.newBuilder().retryMaxAttempts(3).build())
                .build()
                .getService();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions