T
- Application context typepublic interface RepeatContext<T> extends IterationContext<T>
Repeat.onlyIf(java.util.function.Predicate)
and
the repeat callback Repeat.doOnRepeat(java.util.function.Consumer)
.Modifier and Type | Method and Description |
---|---|
Long |
companionValue()
Returns the value provided in the companion Flux for repeats.
|
applicationContext, backoff, iteration
Long companionValue()
Flux.repeatWhen(java.util.function.Function)
and Mono.repeatWhen(java.util.function.Function)
,
value is the number of items emitted in the last attempt.
Mono.repeatWhenEmpty(java.util.function.Function)
and Mono.repeatWhenEmpty(int, java.util.function.Function)
,
value is a zero-based incrementing Long, which is number of attempts - 1.