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

io.vrap.rmf.base.client.http.FailsafeTimeoutBuilderOptions 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.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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy