dk.nykredit.resilience.PolynomialBackoffStrategyConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bel Show documentation
Show all versions of bel Show documentation
Minimalistic Java EE resilience library.
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