java.lang.Object
mutiny.zero.operators.Retry<T>
- Type Parameters:
T
- the elements type
- All Implemented Interfaces:
Flow.Publisher<T>
A
Flow.Publisher
that retries on failure by re-subscribing to its upstream.
A Predicate
controls when to retry, and when to stop retrying.
Note: this retry operator does not perform advanced time-based re-subscriptions (e.g., exponential back-off).
-
Constructor Summary
ConstructorsConstructorDescriptionRetry
(Flow.Publisher<T> upstream, Predicate<Throwable> retryPredicate) Build a new retry publisher. -
Method Summary
-
Constructor Details
-
Retry
Build a new retry publisher.- Parameters:
upstream
- the upstream publisherretryPredicate
- the retry predicate
-
-
Method Details
-
always
-
atMost
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<T>
-