Interface RepeatSpec.RepeatSignal

Enclosing class:
RepeatSpec

public static interface RepeatSpec.RepeatSignal
State information associated with each repeat signal, used in repeat strategies.
  • 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

      Returns an immutable copy of this RepeatSpec.RepeatSignal, capturing the current state.
      Returns:
      an immutable copy of the signal