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

io.vrap.rmf.base.client.AsyncApiClient Maven / Gradle / Ivy

There is a newer version: 17.17.0
Show newest version

package io.vrap.rmf.base.client;

import java.time.Duration;
import java.util.function.Function;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;

public interface AsyncApiClient {
     TReturn execute(final ApiHttpRequest request, final Class outputType);

     TReturn execute(final ApiHttpRequest request, final TypeReference outputType);

     TReturn execute(final ApiHttpRequest request, final JavaType outputType);

     TReturn execute(final ApiHttpRequest request,
            final Function, ApiHttpResponse> mapper);

     TReturn execute(final HttpRequestCommand method);

     TReturn execute(final CreateHttpRequestCommand method, final Class outputType);

     TReturn execute(final CreateHttpRequestCommand method, final JavaType outputType);

     TReturn execute(final CreateHttpRequestCommand method, final TypeReference outputType);

     TReturn execute(final CreateHttpRequestCommand method,
            final Function, ApiHttpResponse> mapper);

     ApiHttpResponse executeBlocking(final CreateHttpRequestCommand method,
            final Function, ApiHttpResponse> mapper, Duration timeout);

     ApiHttpResponse executeBlocking(final CreateHttpRequestCommand method, final Class outputType,
            Duration timeout);

     ApiHttpResponse executeBlocking(final CreateHttpRequestCommand method, final JavaType outputType,
            Duration timeout);

     ApiHttpResponse executeBlocking(final CreateHttpRequestCommand method, final TypeReference outputType,
            Duration timeout);

     TReturn send(final CreateHttpRequestCommand method);

     ApiHttpResponse sendBlocking(final CreateHttpRequestCommand method, final Duration timeout);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy