All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.common.http.impl.conn.tsccm.ConnPoolByRoute.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????24?com/groupbyinc/flux/common/http/impl/conn/tsccm/ConnPoolByRoute@com/groupbyinc/flux/common/http/impl/conn/tsccm/AbstractConnPoolConnPoolByRoute.javaLjava/lang/Deprecated;Acom/groupbyinc/flux/common/http/impl/conn/tsccm/ConnPoolByRoute$1log7Lcom/groupbyinc/flux/common/apache/commons/logging/Log;poolLock!Ljava/util/concurrent/locks/Lock;operator?Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;connPerRoute:Lcom/groupbyinc/flux/common/http/conn/params/ConnPerRoute;leasedConnectionsLjava/util/Set;QLjava/util/Set;freeConnectionsLjava/util/Queue;SLjava/util/Queue;waitingThreadsRLjava/util/Queue;routeToPoolLjava/util/Map;?Ljava/util/Map;connTTLJconnTTLTimeUnitLjava/util/concurrent/TimeUnit;shutdownZmaxTotalConnectionsInumConnections}(Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;Lcom/groupbyinc/flux/common/http/conn/params/ConnPerRoute;I)V????????java/util/concurrent/TimeUnit)MILLISECONDS+	*,?(Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;Lcom/groupbyinc/flux/common/http/conn/params/ConnPerRoute;IJLjava/util/concurrent/TimeUnit;)V%.
/thisALcom/groupbyinc/flux/common/http/impl/conn/tsccm/ConnPoolByRoute;()V%3
4java/lang/Object6getClass()Ljava/lang/Class;89
7:?
=@	
	BConnection operatorD)com/groupbyinc/flux/common/http/util/ArgsFnotNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;HI
GJConnections per routeL	N	N	Q	Q
	T	V"#	XcreateFreeConnQueue()Ljava/util/Queue;Z[
\	^createWaitingThreadQueue`[
a	ccreateRouteToPoolMap()Ljava/util/Map;ef
g	i	k	mgetLock#()Ljava/util/concurrent/locks/Lock;u(Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;Lcom/groupbyinc/flux/common/http/params/HttpParams;)V=com/groupbyinc/flux/common/http/conn/params/ConnManagerParamsrgetMaxConnectionsPerRouteo(Lcom/groupbyinc/flux/common/http/params/HttpParams;)Lcom/groupbyinc/flux/common/http/conn/params/ConnPerRoute;tu
svgetMaxTotalConnections6(Lcom/groupbyinc/flux/common/http/params/HttpParams;)Ixy
sz%&
|params3Lcom/groupbyinc/flux/common/http/params/HttpParams;java/util/LinkedList?
?4java/util/HashMap?
?4newRouteSpecificPool}(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;Acom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool?u(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;Lcom/groupbyinc/flux/common/http/conn/params/ConnPerRoute;)V%?
??route8Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;newWaitingThread?(Ljava/util/concurrent/locks/Condition;Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThread;=com/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThread?l(Ljava/util/concurrent/locks/Condition;Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;)V%?
??cond&Ljava/util/concurrent/locks/Condition;rosplCLcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;closeConnectionC(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;)Vjava/io/IOException?>com/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry?
getConnectionA()Lcom/groupbyinc/flux/common/http/conn/OperatedClientConnection;??
??=com/groupbyinc/flux/common/http/conn/OperatedClientConnection?close?3??I/O error closing connection?5com/groupbyinc/flux/common/apache/commons/logging/Log?debug*(Ljava/lang/Object;Ljava/lang/Throwable;)V????exLjava/io/IOException;entry@Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;conn?Lcom/groupbyinc/flux/common/http/conn/OperatedClientConnection;getRoutePool~(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;Z)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;java/util/concurrent/locks/Lock?lock?3??
java/util/Map?get&(Ljava/lang/Object;)Ljava/lang/Object;??????
?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????unlock?3??java/lang/Throwable?creategetConnectionsInPool;(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;)I??
?
getEntryCount()I??
??6com/groupbyinc/flux/common/http/conn/routing/HttpRoute?$#	?requestPoolEntry?(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/PoolEntryRequest;Dcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThreadAborter?
?4?(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/ConnPoolByRoute;Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThreadAborter;Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;Ljava/lang/Object;)V%?
?stateLjava/lang/Object;aborterFLcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThreadAborter;getEntryBlocking?(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThreadAborter;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;Ccom/groupbyinc/flux/common/http/conn/ConnectionPoolTimeoutException?java/lang/InterruptedException?java/util/Date?java/lang/System?currentTimeMillis()J??
??toMillis(J)J??
*?(J)V%?
?? !	?Connection pool shut down?,com/groupbyinc/flux/common/http/util/Assertscheck(ZLjava/lang/String;)V
isDebugEnabled()Z?	java/lang/StringBuilder
4[append-(Ljava/lang/String;)Ljava/lang/StringBuilder;
-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
] total kept alive: java/util/Queuesize?(I)Ljava/lang/StringBuilder;
, total issued: !
java/util/Set#$, total allocated: & out of (toString()Ljava/lang/String;*+
,(Ljava/lang/Object;)V?.?/getFreeEntry?(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;12
3getCapacity5?
?6Available capacity: 8
getMaxEntries:?
?; [=][?]AcreateEntry?(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;CD
EisEmptyGHdeleteLeastUsedEntryJ3
KNeed to wait for connection [MnewCondition(()Ljava/util/concurrent/locks/Condition;OP?Q??
SsetWaitingThreadB(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThread;)VUV
?WqueueThreadYV
?Zadd(Ljava/lang/Object;)Z\]^await(Ljava/util/Date;)Z`a
?bremoveThreaddV
?eremoveg]hgetTimej?
?k(Timeout waiting for connection from poolm(Ljava/lang/String;)V%o
?psuccesshasCapacity
waitingThread?Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThread;timeouttunitdeadlineLjava/util/Date;	freeEntryd(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;ZJLjava/util/concurrent/TimeUnit;)VgetPlannedRoute:()Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;|}
?~Releasing connection [?getState()Ljava/lang/Object;??
????
?$hfor ?(J)Ljava/lang/StringBuilder;?
? ?indefinitely?java/lang/String?Pooling connection [?]; keep alive ?z?
??updateExpiry#(JLjava/util/concurrent/TimeUnit;)V??
??	dropEntry?3
??notifyWaitingThreadF(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/RouteSpecificPool;)V??
?sLjava/lang/String;reusable
validDurationtimeUnit
allocEntryT(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;??
??Getting free connection [?getRoute?}
??	isExpired(J)Z??
??!Closing expired free connection [?$^No free connections [?doneCreating new connection [??(Lcom/groupbyinc/flux/common/http/conn/ClientConnectionOperator;Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;JLjava/util/concurrent/TimeUnit;)V%?
??createdEntry??
??=com/groupbyinc/flux/common/http/conn/ClientConnectionOperator?opdeleteEntryDeleting connection [?C(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/BasicPoolEntry;)Z??
??isUnused?
??g???g????
?No free connection to delete?handleLostEntry;(Lcom/groupbyinc/flux/common/http/conn/routing/HttpRoute;)V	hasThread?
??"Notifying thread waiting on pool [?
nextThreadA()Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/WaitingThread;??
??$Notifying thread waiting on any pool?.Notifying no-one, there are no waiting threads?wakeup?3
??deleteClosedConnectionsiterator()Ljava/util/Iterator;???java/util/Iterator?hasNext???next????isOpen???g3??iterVLjava/util/Iterator;Ljava/util/Iterator;closeIdleConnections	Time unit%Closing connections idle longer than 
getUpdated?
?Closing connection last used @ idletimetcloseExpiredConnectionsClosing expired connections
Closing connection expired @ 	getExpiry?
?now$?Closing connection [clear3?waiteriter1iter2iwthULjava/util/Iterator;setMaxTotalConnections(I)Vmax
access$000d(Lcom/groupbyinc/flux/common/http/impl/conn/tsccm/ConnPoolByRoute;)Ljava/util/concurrent/locks/Lock;x0	SignatureCodeLocalVariableTableLineNumberTable
DeprecatedRuntimeVisibleAnnotationsU()Ljava/util/Queue;T()Ljava/util/Queue;?()Ljava/util/Map;
StackMapTable
ExceptionsLocalVariableTypeTable
SourceFileInnerClasses!
	

&&&&D !D"#D$#%&'Z*+,'?-?0?(*12
"#)
r
s%.'?a*?5**?;?A?C+E?KW,M?KW**?O?P**?R?S*+?U*,?W*?Y**?]?_**?b?d**?h?j*?l*?n?(>a12a
aa"#aa)>~I??%?-?2?7?<?D?L?T?Z?`?op'/*?P?(12)?%q'P*+,?w,?{?}?( 12
~)
?
?*+Z['2??Y???(12)?&,`['2??Y???(12)?&-ef'2??Y???(12)?&.??'A
??Y+*?W???(
12
??)???'H
??Y+,???( 
12
??
??)???'? +??M,?,???N*?C?-???	?(*?? 12 ????)??	?????/??????'?ON*?P??*?j+????N-??*+??N*?j+-??W*?P???:*?P???-?3??A?(*O12O??O?!M??)*
????!?'?3?<???M?/
?3?K?
??'?6*?P??*+??M,?
,?ק>*?P???:*?P???	((*(( ??6126??)	/??@?????'s%*?P??*??<*?P???M*?P??,?	(%12)	/Y???'`??Y??N?Y*-+,??(*12??????)
??'U:!	????Y??!??a??::*?P??*+??:	:
?*?????*?C?
?^*?C?Y?
?+??*?_?? "?*?S?%? '?*?۶ )?*?Y? ?-?0*	,?4:??y	?7??6*?C?
?L*?C?Y?
9?	?7? )?	??+?@?,?B??-?0?*??*?Y?*	*?U?F:???**?_?I?*?L*+??:	*	*?U?F:??*?C?
?0*?C?Y?
N?+?@?,?B??-?0
?**?P?R	?T:

?X6	
?[*?d
?_W
?c6	
?f*?d
?iW?:
	
?f*?d
?iW
????l??????Yn?q????*?P???:*?P??????????(8DDFD(z?kr!?ds!0??	3tu
U12U??U??UvUwU??Rxy6??)?,JK	LPQ(T0U3W8XJZV[?f?g?h?k?m?n&s6uEwVyZ|b}q?}?????????????????????????*?5?8?A?D?R?/Z??????@?l@?V+8?4?7*??????? ?K?
0??z{'r
C+?:*?C?
?4*?C?Y?
???@?+???B??-?0*?P??*???*+??*?P???*?S+??W*??:???7??*?C?
?h!	??'?Y?
??!??????-:??:*?C?Y?
???@?+???????-?0+??+!??*?_+?_W?*+????*Y??d??*??*?P???:	*?P??	??LX4b(4464(\	????6??v???C12C??C?!C?C?=??)j???C?L?S?X?b?m?v???????????????????"?(?1?4?B?/3	?C??U????5??*??
12'/N*?P??6?+,??N-??*?C?
?3*?C?Y?
??+???@?,?B??-?0*?_-?iW-?????U*?C?
?3*?C?Y?
??+???@?,?B??-?0*-??+??*Y??d?ۧ?Q*?S-??W6??@6*?C?
??1*?C?Y?
??+???@?,?B??-?0???*?P???:*?P???-?!(4?!/12/??/??-??)b???????)?Y?d?n?z?????????	?
-/???J?P?AK?
CD'&?*?C?
?)*?C?Y?
??+???B??-?0??Y,+??*?l*?n??N*?P??+-??*Y??`??*?S-??W*?P???:*?P???-?Pjvvxv(*?12?????G???).#$2(G*P,U-_.j0s1v0?3/2?C????
??'3?+?M*?C?
?3*?C?Y?
ʶ,?@?+???B??-?0*?P??*+??*,??N-+??W*Y??d??-?Й*?j,??W*?P???:*?P????Jx????(*V"???12??????):DFGAKJNOPVQ\RfSmTxX?Y?X?Z/?A?6K?
J3'?S*?P??*?_????L+?*+?֧*?C?
?*?Cع0*?P???M*?P??,??	:FFGF($??S12)*
b	egh"i.j:nCoFnRp/?"??K???'?N*?P??*+??M,??,?Й*?j+??W*Y??d??*,??*?P???N*?P??-??	5AABA( %??N12N??).u	xyz{&~05?>?A?M?/?&??????'g?M*?P??+?D+?ݙ=*?C?
?)*?C?Y?
߶+???B??-?0+??M?O*?d?I?+*?C?
?*?C?0*?d????M?*?C?
?*?C?0,?,??*?P???N*?P??-???????( ?12????tu)J????"?H?P?\?h?t?????????????????/?H?#K??3'?Y*?P??*?_??L+???'+????M,?????+??*,?֧??*?P???N*?P??-??	@LLML( &??-??Y121-??)2?	???&?2?8?=?@?I?L?X?/??)?K??'??-?KW	???	7*?C?
?+*?C?Y?
?????-??-?0??-??e7*?P??*?_??:???^????:		???D*?C?
?+*?C?Y?
	???Y	?????-?0??*	?֧??*?P???:
*?P??
??^?????(HL??	ie???12?
?w?U?x1ie??)N???!?I?U?^?i?s????????????????????/!	@?5???T???K?
3'd?*?C?0??@*?P??*?_??N-???Z-????:???C*?C?
?+*?C?Y?
???Y?????-?0-??*?֧??*?P???:*?P?????????(*7I??#`???12?1#`??)B????#?,?7?@?L?t?z???????????/?#??P???K?
 3'L*?P??*???
*?P???*??*?S?L+???+????M+??*,?????*?_??M,???Z,????N,??*?C?
?6*?C?Y?
?-??@?-???B??-?0*-?????*?d??N-???-????:-??????*?j?*?P???:*?P????	??????(H<??gJ???u)??T???+?121 )??T???+)v?	&)2	<
BGJT]gmy??????? ?!?#?&?'?&(/.
?? ?	??W???	?!??
 !'?'*?P??*?Y*?P???M*?P??,??	('12'"#).	0232&4/Z?x?'/*?Y?(12);#$'/*?P?(%2)G2*3
+




© 2015 - 2024 Weber Informatics LLC | Privacy Policy