| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,7 +50,6 @@ public class RemoteGcsHelper { | |||
| 50 | 50 | private static final String BUCKET_NAME_PREFIX = "gcloud-test-bucket-temp-"; | |
| 51 | 51 | private static final String PROJECT_ID_ENV_VAR = "GCLOUD_TESTS_PROJECT_ID"; | |
| 52 | 52 | private static final String PRIVATE_KEY_ENV_VAR = "GCLOUD_TESTS_KEY"; | |
| 53 | - | ||
| 54 | 53 | private final StorageOptions options; | |
| 55 | 54 | ||
| 56 | 55 | private RemoteGcsHelper(StorageOptions options) { | |
@@ -127,7 +126,13 @@ public static RemoteGcsHelper create(String projectId, String keyPath, Option... | |||
| 127 | 126 | StorageOptions storageOptions = StorageOptions.builder() | |
| 128 | 127 | .authCredentials(AuthCredentials.createForJson(keyFileStream)) | |
| 129 | 128 | .projectId(projectId) | |
| 130 | - .retryParams(RetryParams.getDefaultInstance()) | ||
| 129 | + .retryParams(RetryParams.builder() | ||
| 130 | + .retryMaxAttempts(10) | ||
| 131 | + .retryMinAttempts(6) | ||
| 132 | + .maxRetryDelayMillis(30000) | ||
| 133 | + .totalRetryPeriodMillis(120000) | ||
| 134 | + .initialRetryDelayMillis(250) | ||
| 135 | + .build()) | ||
| 131 | 136 | .build(); | |
| 132 | 137 | return new RemoteGcsHelper(storageOptions); | |
| 133 | 138 | } catch (FileNotFoundException ex) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments