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 RetryHandler
    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 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:
        true to continue retrying or false to stop retrying.