All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vrap.rmf.base.client.http.FailsafeConcurrencyBuilderOptions Maven / Gradle / Ivy

There is a newer version: 17.17.0
Show newest version

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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy