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

com.microsoft.azure.functions.annotation.ExponentialBackoffRetry Maven / Gradle / Ivy

Go to download

This package contains all Java interfaces and annotations to interact with Microsoft Azure functions runtime.

There is a newer version: 3.1.0
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.functions.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 

* Defines an exponential backoff retry strategy, where the delay between retries * will get progressively larger, limited by the max/min specified.

* * @since 1.0.0 */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface ExponentialBackoffRetry { /** * The strategy of retries that will be used internally. * @return The strategy of retries. */ String strategy() default "exponentialBackoff"; /** * The maximum number of retries that will be attempted. * @return The maximum retry count. */ int maxRetryCount(); /** * The minimum delay interval. * @return The minimum retry delay. */ String minimumInterval(); /** * The maximum delay interval. * @return The maximum retry delay. */ String maximumInterval(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy