io.vrap.rmf.base.client.http.FailsafeRetryPolicyBuilderOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
package io.vrap.rmf.base.client.http;
import java.util.Objects;
import io.vrap.rmf.base.client.ApiHttpResponse;
import dev.failsafe.RetryPolicyBuilder;
/**
* Interface to enable the configuration of Failsafe instances
*/
@FunctionalInterface
public interface FailsafeRetryPolicyBuilderOptions {
RetryPolicyBuilder> apply(RetryPolicyBuilder> options);
default FailsafeRetryPolicyBuilderOptions andThen(FailsafeRetryPolicyBuilderOptions after) {
Objects.requireNonNull(after);
return (t) -> after.apply(apply(t));
}
}