Class HttpCall<V>
- java.lang.Object
-
- zipkin2.Call<V>
-
- zipkin2.elasticsearch.internal.client.HttpCall<V>
-
- All Implemented Interfaces:
java.lang.Cloneable
public final class HttpCall<V> extends Call<V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttpCall.BodyConverter<V>static classHttpCall.Factory-
Nested classes/interfaces inherited from class zipkin2.Call
Call.Base<V extends java.lang.Object>, Call.ErrorHandler<V extends java.lang.Object>, Call.FlatMapper<V1 extends java.lang.Object,V2 extends java.lang.Object>, Call.Mapper<V1 extends java.lang.Object,V2 extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description HttpCall.BodyConverter<V>bodyConverterokhttp3.Callcall
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()HttpCall<V>clone()voidenqueue(Callback<V> delegate)Vexecute()booleanisCanceled()static <V> VparseResponse(okhttp3.Response response, HttpCall.BodyConverter<V> bodyConverter)-
Methods inherited from class zipkin2.Call
create, emptyList, flatMap, handleError, map, propagateIfFatal
-
-
-
-
Field Detail
-
call
public final okhttp3.Call call
-
bodyConverter
public final HttpCall.BodyConverter<V> bodyConverter
-
-
Method Detail
-
execute
public V execute() throws java.io.IOException
-
isCanceled
public boolean isCanceled()
- Specified by:
isCanceledin classCall<V>
-
parseResponse
public static <V> V parseResponse(okhttp3.Response response, HttpCall.BodyConverter<V> bodyConverter) throws java.io.IOException- Throws:
java.io.IOException
-
-