Skip to content

Commit 0b33a68

Browse files
committed
---
yaml --- r: 2445 b: refs/heads/update-datastore c: b28b307 h: refs/heads/master i: 2443: 11944b9
1 parent 25365ea commit 0b33a68

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/bigquery: 762fa5830e6c398c0396177e3e7fd243bd62cfc3
66
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b
77
refs/heads/resource-manager: ebf4adc5ee835cd2086c4ac5b4e78d01a5a005a7
8-
refs/heads/update-datastore: d0265406392a9c30f96903c5647874e82f92117b
8+
refs/heads/update-datastore: b28b3079539e2c1635da8a2e795055c05f2f5a07
99
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444
1010
refs/tags/v0.0.10: 207ebd2a3472fddee69fe1298eb90429e3306efd
1111
refs/tags/v0.0.11: ffbfba48a6426ff63c08ff2117e58681f251fbf2

branches/update-datastore/gcloud-java-core/src/main/java/com/google/gcloud/ExceptionHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,11 @@ void verifyCaller(Callable<?> callable) {
231231
}
232232
}
233233

234-
public Set<Class<? extends Exception>> getRetriableExceptions() {
234+
public Set<Class<? extends Exception>> retriableExceptions() {
235235
return retriableExceptions;
236236
}
237237

238-
public Set<Class<? extends Exception>> getNonRetriableExceptions() {
238+
public Set<Class<? extends Exception>> nonRetriableExceptions() {
239239
return nonRetriableExceptions;
240240
}
241241

@@ -262,7 +262,7 @@ boolean shouldRetry(Exception ex) {
262262
/**
263263
* Returns an instance which retry any checked exception and abort on any runtime exception.
264264
*/
265-
public static ExceptionHandler getDefaultInstance() {
265+
public static ExceptionHandler defaultInstance() {
266266
return DEFAULT_INSTANCE;
267267
}
268268

branches/update-datastore/gcloud-java-core/src/main/java/com/google/gcloud/RetryHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ private static long getExponentialValue(long initialDelay, double backoffFactor,
229229

230230
public static <V> V runWithRetries(Callable<V> callable) throws RetryHelperException {
231231
return runWithRetries(callable, RetryParams.defaultInstance(),
232-
ExceptionHandler.getDefaultInstance());
232+
ExceptionHandler.defaultInstance());
233233
}
234234

235235
public static <V> V runWithRetries(Callable<V> callable, RetryParams params,

branches/update-datastore/gcloud-java-core/src/test/java/com/google/gcloud/ExceptionHandlerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public Object call() throws Error {
8282
}
8383

8484
// using default exception handler (retry upon any non-runtime exceptions)
85-
ExceptionHandler handler = ExceptionHandler.getDefaultInstance();
85+
ExceptionHandler handler = ExceptionHandler.defaultInstance();
8686
assertValidCallable(new A(), handler);
8787
assertValidCallable(new B(), handler);
8888
assertValidCallable(new C(), handler);

branches/update-datastore/gcloud-java-core/src/test/java/com/google/gcloud/RetryHelperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public void testTriesAtLeastMinTimes() {
124124
}
125125
return timesCalled;
126126
}
127-
}, params, ExceptionHandler.getDefaultInstance());
127+
}, params, ExceptionHandler.defaultInstance());
128128
assertEquals(timesToFail + 1, attempted);
129129
assertNull(RetryHelper.getContext());
130130
}

0 commit comments

Comments
 (0)