io.vrap.rmf.base.client.http.FailsafeTimeoutBuilderOptions 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.TimeoutBuilder;
/**
* Interface to enable the configuration of Failsafe instances
*/
@FunctionalInterface
public interface FailsafeTimeoutBuilderOptions {
TimeoutBuilder> apply(TimeoutBuilder> options);
default FailsafeTimeoutBuilderOptions andThen(FailsafeTimeoutBuilderOptions after) {
Objects.requireNonNull(after);
return (t) -> after.apply(apply(t));
}
}