Share via


RetryHandler Interface

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 Summary

Modifier and Type Method and Description
abstract boolean handle(RetryContext context)

Invokes the retry handler logic and returns a value indicating whether to continue retrying.

Method Details

handle

public abstract 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.

Applies to