Allow RestartSource.withBackoff to restart only on failures #23881 (#23911)

* Allow RestartSource.withBackoff to restart only on failures #23881
This commit is contained in:
nachinius 2017-11-13 09:47:27 -03:00 committed by Patrik Nordwall
parent bb9d3927c8
commit 53bbd5ab5f
5 changed files with 123 additions and 30 deletions

View file

@ -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(