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