com.groupbyinc.flux.common.apache.http.nio.pool.RouteSpecificPool.class Maven / Gradle / Ivy
???? 2 ? Acom/groupbyinc/flux/common/apache/http/nio/pool/RouteSpecificPool };>Ljava/lang/Object; java/lang/Object RouteSpecificPool.java route Ljava/lang/Object; TT; leased Ljava/util/Set; Ljava/util/Set; available Ljava/util/LinkedList; Ljava/util/LinkedList; pending Ljava/util/Map; ?Ljava/util/Map;>; (Ljava/lang/Object;)V ()V
java/util/HashSet
java/util/LinkedList
" java/util/HashMap $
% ' this NLcom/groupbyinc/flux/common/apache/http/nio/pool/RouteSpecificPool; CLcom/groupbyinc/flux/common/apache/http/nio/pool/RouteSpecificPool; getRoute ()Ljava/lang/Object; createEntry ](Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry; getLeasedCount ()I
java/util/Set 2 size 4 1 3 5 getPendingCount
java/util/Map 8 9 5 getAvailableCount
5 getAllocatedCount getFree K(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry; isEmpty ()Z @ A
B iterator ()Ljava/util/Iterator; D E
F java/util/Iterator H hasNext J A I K next M - I N 5com/groupbyinc/flux/common/apache/http/pool/PoolEntry P getState R -
Q S equals (Ljava/lang/Object;)Z U V
W remove Y I Z add \ V 3 ] entry TE; 7Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry; it Ljava/util/Iterator; Ljava/util/Iterator; state getLastUsed 9()Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry; getLast h -
i :(Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry;)Z
Pool entry l 0com/groupbyinc/flux/common/apache/http/util/Args n notNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; p q
o r Y V
t 3 t free ;(Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry;Z)V +Entry %s has not been leased from this pool y 3com/groupbyinc/flux/common/apache/http/util/Asserts { check ((ZLjava/lang/String;Ljava/lang/Object;)V } ~
| addFirst ?
? reusable Z found
addPending ?(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;Lcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture;)V put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? 9 ? sessionRequest CLcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest; future DLcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture; ?Lcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture;
removeRequest ?(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;)Lcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture; &(Ljava/lang/Object;)Ljava/lang/Object; Y ? 9 ? =com/groupbyinc/flux/common/apache/http/concurrent/BasicFuture ? Session request future ? '(Ljava/lang/Object;Ljava/lang/String;)V p ?
| ? request ?(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry; . /
? conn TC; completed }(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;Lcom/groupbyinc/flux/common/apache/http/pool/PoolEntry;)V ? ?
? ? V
? ? cancelled F(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;)V cancel (Z)Z ? ?
? ? failed [(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;Ljava/lang/Exception;)V (Ljava/lang/Exception;)Z ? ?
? ? ex Ljava/lang/Exception; timeout java/net/ConnectException ?
? shutdown keySet ()Ljava/util/Set; ? ? 9 ? 3 F Acom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest ? ? ? ? clear ? 9 ? close ?
Q ?
? 3 ? i$ toString ()Ljava/lang/String; java/lang/StringBuilder ?
? [route: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ?
][leased: ? (I)Ljava/lang/StringBuilder; ? ?
? ?
][available: ? ][pending: ? ] ? ? ?
? ? buffer Ljava/lang/StringBuilder; Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable (TT;)V ()TT; (TT;TC;)TE;
StackMapTable (Ljava/lang/Object;)TE; ()TE; (TE;)Z (TE;Z)V ?(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;Lcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture;)V ?(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;)Lcom/groupbyinc/flux/common/apache/http/concurrent/BasicFuture; K(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;TC;)TE; I(Lcom/groupbyinc/flux/common/apache/http/nio/reactor/SessionRequest;TE;)V
SourceFile ?
?
? ? ? ? +*? *+? *? Y? ? *? Y? !? #*? %Y? &? (? ? + ) + + ? + ) * + ? 3 4 5 6 7 * 8 ? ? , - ? A *? ? ? ) + ? ) * ? ; ? ? . / ? ? 0 1 ? F
*? ? 6 ? ?
) + ?
) * ? A 7 1 ? F
*? (? : ? ?
) + ?
) * ? E ; 1 ? D *? #?