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$NodeTuple;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$NodeTuple NodeTuple val$request @Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase; val$node !Lcom/groupbyinc/flux/client/Node; val$ignoreErrorCodes Ljava/util/Set; val$listener GLcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;
val$nodeTuple 1Lcom/groupbyinc/flux/client/RestClient$NodeTuple;
val$startTime J $val$httpAsyncResponseConsumerFactory =Lcom/groupbyinc/flux/client/HttpAsyncResponseConsumerFactory; this$0 'Lcom/groupbyinc/flux/client/RestClient; P(Lcom/groupbyinc/flux/client/RestClient;Lcom/groupbyinc/flux/common/http/client/methods/HttpRequestBase;Lcom/groupbyinc/flux/client/Node;Ljava/util/Set;Lcom/groupbyinc/flux/client/RestClient$FailureTrackingResponseListener;Lcom/groupbyinc/flux/client/RestClient$NodeTuple;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/Node C getHost ,()Lcom/groupbyinc/flux/common/http/HttpHost; E F
D G (com/groupbyinc/flux/client/RequestLogger I 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 K L
J M ,com/groupbyinc/flux/common/http/HttpResponse O
getStatusLine .()Lcom/groupbyinc/flux/common/http/StatusLine; Q R P S *com/groupbyinc/flux/common/http/StatusLine U
getStatusCode ()I W X V Y #com/groupbyinc/flux/client/Response [ >com/groupbyinc/flux/common/http/client/methods/HttpRequestBase ] getRequestLine /()Lcom/groupbyinc/flux/common/http/RequestLine; _ `
^ a ?(Lcom/groupbyinc/flux/common/http/RequestLine;Lcom/groupbyinc/flux/common/http/HttpHost;Lcom/groupbyinc/flux/common/http/HttpResponse;)V $ c
\ d
access$100 (I)Z f g
h
\ S java/lang/Integer k valueOf (I)Ljava/lang/Integer; m n
l o
java/util/Set q contains (Ljava/lang/Object;)Z s t r u
access$200 K(Lcom/groupbyinc/flux/client/RestClient;Lcom/groupbyinc/flux/client/Node;)V w x
y onSuccess ((Lcom/groupbyinc/flux/client/Response;)V { |
} ,com/groupbyinc/flux/client/ResponseException $ |
? ?
access$300 ? g
?
access$400 ? x
? 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/client/Node;Ljava/lang/Exception;)V ? ?
J ? failure nodes 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
^ ?
access$600/(Lcom/groupbyinc/flux/client/RestClient;JLcom/groupbyinc/flux/client/RestClient$NodeTuple;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 " # ? ; <