Closed johanhaleby closed 1 year ago
For example:
retry.execute(ctx -> ..);
ctx should include e.g. isLastAttempt, numberOfAttempts, numberOfAttemptsLeft, currentBackoffTime, nextBackoffTime, elapsedTime, and the ability to set state in the context (should it be immutable?).
ctx
isLastAttempt
numberOfAttempts
numberOfAttemptsLeft
currentBackoffTime
nextBackoffTime
elapsedTime
For example:
retry.execute(ctx -> ..);
ctx
should include e.g.isLastAttempt
,numberOfAttempts
,numberOfAttemptsLeft
,currentBackoffTime
,nextBackoffTime
,elapsedTime
, and the ability to set state in the context (should it be immutable?).