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();
Hi! I am trying to implement my own
RetryParamsto alter the maximum number of reattempts made by my storage service. However, I could not importRetryParamsand 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: