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

dk.nykredit.resilience.PolynomialBackoffStrategyConfig Maven / Gradle / Ivy

There is a newer version: 0.9.2
Show newest version
package dk.nykredit.resilience;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

/**
 * Configuration for the polynomial back-off strategy.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
public @interface PolynomialBackoffStrategyConfig {

    int delay();
    int maxDelay();
    int retries();
    TimeUnit timeUnit() default TimeUnit.SECONDS;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy