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

io.airlift.http.client.jetty.FailedHttpResponseFuture Maven / Gradle / Ivy

The newest version!
package io.airlift.http.client.jetty;

import com.google.common.util.concurrent.ForwardingListenableFuture.SimpleForwardingListenableFuture;
import io.airlift.http.client.HttpClient;

import static com.google.common.util.concurrent.Futures.immediateFailedFuture;

public class FailedHttpResponseFuture
        extends SimpleForwardingListenableFuture
        implements HttpClient.HttpResponseFuture
{
    public FailedHttpResponseFuture(Throwable throwable)
    {
        super(immediateFailedFuture(throwable));
    }

    @Override
    public String getState()
    {
        return "FAILED";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy