public final class RetryWhenBuilder<T> extends Object
Constructor and Description |
---|
RetryWhenBuilder(Stream<T> stream) |
Modifier and Type | Method and Description |
---|---|
Stream<T> |
build() |
RetryWhenBuilder<T> |
delay(long duration,
TimeUnit unit) |
RetryWhenBuilder<T> |
delays(Stream<Long> delays,
TimeUnit unit) |
RetryWhenBuilder<T> |
isTrue(Predicate<? super Throwable> predicate) |
RetryWhenBuilder<T> |
maxRetries(int maxRetries) |
public RetryWhenBuilder<T> delay(long duration, TimeUnit unit)
public RetryWhenBuilder<T> maxRetries(int maxRetries)
public RetryWhenBuilder<T> delays(Stream<Long> delays, TimeUnit unit)
public RetryWhenBuilder<T> isTrue(Predicate<? super Throwable> predicate)
Copyright © 2018–2023. All rights reserved.