Skip to content

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

@jmtiong

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();

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions