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

io.vrap.rmf.base.client.CompletableFutureApiClient 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.concurrent.CompletableFuture;
import java.util.function.Function;

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

public interface CompletableFutureApiClient extends AsyncApiClient> {

    @Override
     CompletableFuture> execute(final ApiHttpRequest request, final Class outputType);

    @Override
     CompletableFuture> execute(final ApiHttpRequest request, final TypeReference outputType);

    @Override
     CompletableFuture> execute(final ApiHttpRequest request, final JavaType outputType);

    @Override
     CompletableFuture> execute(final ApiHttpRequest request,
            final Function, ApiHttpResponse> mapper);

    @Override
     CompletableFuture> execute(final HttpRequestCommand method);

    @Override
     CompletableFuture> execute(final CreateHttpRequestCommand method,
            final Class outputType);

    @Override
     CompletableFuture> execute(final CreateHttpRequestCommand method, final JavaType outputType);

    @Override
     CompletableFuture> execute(final CreateHttpRequestCommand method,
            final TypeReference outputType);

    @Override
     CompletableFuture> execute(final CreateHttpRequestCommand method,
            final Function, ApiHttpResponse> mapper);

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

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

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

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

    @Override
    CompletableFuture> send(final CreateHttpRequestCommand method);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy