* Allow RestartSource.withBackoff to restart only on failures #23881
This commit is contained in:
parent
bb9d3927c8
commit
53bbd5ab5f
5 changed files with 123 additions and 30 deletions
|
|
@ -56,7 +56,6 @@ public class RestartDocTest {
|
|||
Duration.apply(3, TimeUnit.SECONDS), // min backoff
|
||||
Duration.apply(30, TimeUnit.SECONDS), // max backoff
|
||||
0.2, // adds 20% "noise" to vary the intervals slightly
|
||||
|
||||
() ->
|
||||
// Create a source from a future of a source
|
||||
Source.fromSourceCompletionStage(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue