com.groupbyinc.flux.client.RestClient$1.class Maven / Gradle / Ivy
???? 3 ? 'com/groupbyinc/flux/client/RestClient$1 }Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback; java/lang/Object 9com/groupbyinc/flux/common/http/concurrent/FutureCallback RestClient.java %com/groupbyinc/flux/client/RestClient performRequestAsync(JLcom/groupbyinc/flux/client/RestClient$HostTuple;Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase;Ljava/util/Set;Lcom/groupbyinc/flux/client/HttpAsyncResponseConsumerFactory;Lcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;)V Ecom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener FailureTrackingResponseListener /com/groupbyinc/flux/client/RestClient$HostTuple HostTuple val$request @Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase; val$host *Lcom/groupbyinc/flux/common/http/HttpHost; val$ignoreErrorCodes Ljava/util/Set; val$listener GLcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;
val$hostTuple 1Lcom/groupbyinc/flux/client/RestClient$HostTuple;
val$startTime J $val$httpAsyncResponseConsumerFactory =Lcom/groupbyinc/flux/client/HttpAsyncResponseConsumerFactory; this$0 'Lcom/groupbyinc/flux/client/RestClient; Y(Lcom/groupbyinc/flux/client/RestClient;Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase;Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/util/Set;Lcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;Lcom/groupbyinc/flux/client/RestClient$HostTuple;JLcom/groupbyinc/flux/client/HttpAsyncResponseConsumerFactory;)V " # & ( * , . 0 2 ! 4 ()V $ 6
7 this )Lcom/groupbyinc/flux/client/RestClient$1; completed 1(Lcom/groupbyinc/flux/common/http/HttpResponse;)V java/lang/Exception =
access$000 9()Lcom/groupbyinc/flux/common/apache/commons/logging/Log; ? @
A (com/groupbyinc/flux/client/RequestLogger C logResponse ?(Lcom/groupbyinc/flux/common/apache/commons/logging/Log;Lcom/groupbyinc/flux/common/http/client/methods/HttpUriRequest;Lcom/groupbyinc/flux/common/http/HttpHost;Lcom/groupbyinc/flux/common/http/HttpResponse;)V E F
D G ,com/groupbyinc/flux/common/http/HttpResponse I
getStatusLine .()Lcom/groupbyinc/flux/common/http/StatusLine; K L J M *com/groupbyinc/flux/common/http/StatusLine O
getStatusCode ()I Q R P S #com/groupbyinc/flux/client/Response U >com/groupbyinc/flux/common/http/client/methods/HttpRequestBase W getRequestLine /()Lcom/groupbyinc/flux/common/http/RequestLine; Y Z
X [ ?(Lcom/groupbyinc/flux/common/http/RequestLine;Lcom/groupbyinc/flux/common/http/HttpHost;Lcom/groupbyinc/flux/common/http/HttpResponse;)V $ ]
V ^
access$100 (I)Z ` a
b
V M java/lang/Integer e valueOf (I)Ljava/lang/Integer; g h
f i
java/util/Set k contains (Ljava/lang/Object;)Z m n l o
access$200 T(Lcom/groupbyinc/flux/client/RestClient;Lcom/groupbyinc/flux/common/http/HttpHost;)V q r
s onSuccess ((Lcom/groupbyinc/flux/client/Response;)V u v
w ,com/groupbyinc/flux/client/ResponseException y $ v
z {
access$300 } a
~
access$400 ? r
? retryIfPossible (Ljava/lang/Exception;)V ? ?
? onDefinitiveFailure ? ?
? responseException .Lcom/groupbyinc/flux/client/ResponseException;
statusCode I response %Lcom/groupbyinc/flux/client/Response; e Ljava/lang/Exception; httpResponse .Lcom/groupbyinc/flux/common/http/HttpResponse; failed logFailedRequest ?(Lcom/groupbyinc/flux/common/apache/commons/logging/Log;Lcom/groupbyinc/flux/common/http/client/methods/HttpUriRequest;Lcom/groupbyinc/flux/common/http/HttpHost;Ljava/lang/Exception;)V ? ?
D ? failure hosts Ljava/lang/Object; ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? java/util/concurrent/TimeUnit ? NANOSECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? java/lang/System ? nanoTime ()J ? ?
? ? toMillis (J)J ? ?
? ?
access$500 *(Lcom/groupbyinc/flux/client/RestClient;)J ? ?
? java/io/IOException ? java/lang/StringBuilder ?
? 7 ,request retries exceeded max retry timeout [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (J)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V $ ?
? ? trackFailure ? ?
? reset ? 6
X ?
access$600/(Lcom/groupbyinc/flux/client/RestClient;JLcom/groupbyinc/flux/client/RestClient$HostTuple;Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase;Ljava/util/Set;Lcom/groupbyinc/flux/client/HttpAsyncResponseConsumerFactory;Lcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;)V ? ?
? retryTimeoutException Ljava/io/IOException; timeElapsedMillis timeout exception cancelled 'java/util/concurrent/ExecutionException ? request was cancelled ? *(Ljava/lang/String;Ljava/lang/Throwable;)V $ ?
? ? (Ljava/lang/Object;)V ; <
? Code LocalVariableTable LineNumberTable
StackMapTable Signature
SourceFile EnclosingMethod InnerClasses ! " # $ % ? f
2*+? '*,? )*-? +*? -*? /*? 1*? 3* ? 5*? 8? ? 2 9 : 2 " # ? X ; <