netflix.ocelli.rxnetty.HttpClientHolder Maven / Gradle / Ivy
package netflix.ocelli.rxnetty;
import io.reactivex.netty.protocol.http.client.HttpClient;
import io.reactivex.netty.protocol.http.client.HttpClientRequest;
import io.reactivex.netty.protocol.http.client.HttpClientResponse;
/**
* An extension of {@link MetricAwareClientHolder} for HTTP.
*
* @author Nitesh Kant
*/
public class HttpClientHolder extends MetricAwareClientHolder, HttpClientResponse, HttpClient, HttpMetricListener> {
public HttpClientHolder(HttpClient client) {
super(client, new HttpMetricListener());
}
@Override
public HttpMetricListener getListener() {
return super.getListener();
}
}