to delay between retrying each failed element.
exponential amount the delay duration will be increased upon each retry
function to determine if an element passed by the joined Flow is actually a failure or not
maximum number of retry attempts on any failures before giving up.
maximum delay duration for retry.
maximum number of elements waiting to be retried.
maximum number of elements waiting to be retried. Defaults to stream internal buffer size.
function that maps Context to a unique id
Java API
A Retry Settings class for configuring a Retry
Retry functionality requires each element passing through is uniquely identifiable for retrying, so it requires a Context, of any type carried along with the flow's input and output element as a Tuple2 (Scala) or Pair (Java). The requirement is that either the Context type itself or a mapping from Context should be able to uniquely identify each element passing through flow.
Here are the ways a unique id can be provided:
the type of elements pulled from upstream along with the Context
the type of the elements that are pushed to downstream along with the Context
the type of the context that is carried along with the elements.
a RetrySettings with specified values