Package io.dapr.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.
Functional 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
Modifier and TypeMethodDescriptionbooleanhandle(RetryContext context) Invokes the retry handler logic and returns a value indicating whether to continue retrying.
-
Method Details
-
handle
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.
-