All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.durabletask.RetryHandler Maven / Gradle / Ivy

Go to download

This package contains classes and interfaces for building Durable Task orchestrations in Java.

There is a newer version: 1.5.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.durabletask;

/**
 * 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. */ @FunctionalInterface public interface RetryHandler { /** * Invokes the retry handler logic and returns a value indicating whether to continue retrying. * * @param context retry context that's updated between each retry attempt * @return {@code true} to continue retrying or {@code false} to stop retrying. */ boolean handle(RetryContext context); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy