Revert 2 changes unrelated to BAEL-7074
This commit is contained in:
parent
38f30e733f
commit
1aa2f849f4
@ -48,7 +48,7 @@ public class RetryCompletableFuture {
|
|||||||
CompletableFuture<T> cf = CompletableFuture.supplyAsync(supplier);
|
CompletableFuture<T> cf = CompletableFuture.supplyAsync(supplier);
|
||||||
sleep(100);
|
sleep(100);
|
||||||
for (int i = 0; i < maxRetries; i++) {
|
for (int i = 0; i < maxRetries; i++) {
|
||||||
//cf = cf.exceptionallyAsync(__ -> supplier.get());
|
cf = cf.exceptionallyAsync(__ -> supplier.get());
|
||||||
}
|
}
|
||||||
return cf;
|
return cf;
|
||||||
}
|
}
|
||||||
|
@ -20,9 +20,9 @@ public class CustomCompletableFuture<T> extends CompletableFuture<T> {
|
|||||||
return future;
|
return future;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Override
|
@Override
|
||||||
// public Executor defaultExecutor() {
|
public Executor defaultExecutor() {
|
||||||
// return executor;
|
return executor;
|
||||||
// }
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user