io.vrap.rmf.base.client.AsyncApiClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rmf-java-base Show documentation
Show all versions of rmf-java-base Show documentation
The e-commerce SDK from commercetools Composable Commerce for Java
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);
}