
io.vrap.rmf.base.client.http.PolicyMiddleware 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 for Java
package io.vrap.rmf.base.client.http;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ScheduledExecutorService;
import io.vrap.rmf.base.client.ApiHttpResponse;
import dev.failsafe.Policy;
import dev.failsafe.spi.Scheduler;
public interface PolicyMiddleware extends Middleware {
public static PolicyMiddleware of(final List>> policies) {
return new PolicyMiddlewareImpl(Scheduler.DEFAULT, policies);
}
public static PolicyMiddleware of(final Scheduler scheduler, final List>> policies) {
return new PolicyMiddlewareImpl(scheduler, policies);
}
public static PolicyMiddleware of(final ScheduledExecutorService scheduler,
final List>> policies) {
return new PolicyMiddlewareImpl(Scheduler.of(scheduler), policies);
}
public static PolicyMiddleware of(final ExecutorService scheduler,
final List>> policies) {
return new PolicyMiddlewareImpl(Scheduler.of(scheduler), policies);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy