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

com.yahoo.vespa.jaxrs.client.JaxRsStrategy Maven / Gradle / Ivy

There is a newer version: 7.579.27
Show newest version
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.jaxrs.client;

import java.io.IOException;
import java.util.function.Function;

/**
 * This interface allows different strategies for accessing server-side JAX-RS APIs programmatically.
 *
 * @author bakksjo
 */
public interface JaxRsStrategy {
     R apply(final Function function) throws IOException;

    default  R apply(final Function function, JaxRsTimeouts timeouts) throws IOException {
        return apply(function);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy