com.inpaas.http.model.HttpClientFuture Maven / Gradle / Ivy
package com.inpaas.http.model;
import java.io.PrintStream;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonValue;
import com.inpaas.http.model.exception.HttpRequestException;
import com.inpaas.http.utils.JSON;
public class HttpClientFuture {
private final int timeout;
@JsonIgnore
private final CompletableFuture future;
public HttpClientFuture(HttpClientInvocation request, CompletableFuture future, int timeout) {
this.future = future;
this.timeout = timeout;
}
public HttpClientFuture success(BiConsumer
© 2015 - 2025 Weber Informatics LLC | Privacy Policy