Package com.microsoft.durabletask
Interface RetryHandler
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RetryHandlerFunctional interface for implementing custom task retry handlers.It's important to remember that retry handler code is an extension of the orchestrator code and must therefore comply with all the determinism requirements of orchestrator code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(RetryContext context)Invokes the retry handler logic and returns a value indicating whether to continue retrying.
-
-
-
Method Detail
-
handle
boolean handle(RetryContext context)
Invokes the retry handler logic and returns a value indicating whether to continue retrying.- Parameters:
context- retry context that's updated between each retry attempt- Returns:
trueto continue retrying orfalseto stop retrying.
-
-