Package reactor.util.repeat
Interface RepeatSpec.RepeatSignal
- Enclosing class:
- RepeatSpec
public static interface RepeatSpec.RepeatSignal
State information associated with each repeat signal, used in repeat strategies.
-
Method Summary
Modifier and TypeMethodDescriptionbackoff()Returns the delay before the next repeat attempt.Returns the value from the companion publisher that triggered this repeat signal.copy()Returns an immutable copy of thisRepeatSpec.RepeatSignal, capturing the current state.longReturns the current iteration count, starting from 0.Returns the read-only context associated with this repeat signal.
-
Method Details
-
iteration
long iteration()Returns the current iteration count, starting from 0.- Returns:
- the iteration index
-
companionValue
Long companionValue()Returns the value from the companion publisher that triggered this repeat signal.- Returns:
- the companion value
-
backoff
Duration backoff()Returns the delay before the next repeat attempt.- Returns:
- the backoff duration
-
repeatContextView
ContextView repeatContextView()Returns the read-only context associated with this repeat signal.- Returns:
- the repeat context view
-
copy
RepeatSpec.RepeatSignal copy()Returns an immutable copy of thisRepeatSpec.RepeatSignal, capturing the current state.- Returns:
- an immutable copy of the signal
-