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

com.groupbyinc.flux.common.http.nio.pool.AbstractNIOConnPool.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????2?;>Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/pool/ConnPool;Lcom/groupbyinc/flux/common/http/pool/ConnPoolControl;java/lang/Object-com/groupbyinc/flux/common/http/pool/ConnPool4com/groupbyinc/flux/common/http/pool/ConnPoolControlAbstractNIOConnPool.java5Lcom/groupbyinc/flux/common/http/annotation/Contract;	threading>Lcom/groupbyinc/flux/common/http/annotation/ThreadingBehavior;SAFE_CONDITIONAL[com/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool$InternalSessionRequestCallbackInternalSessionRequestCallback>com/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool$4>com/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool$3>com/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool$2>com/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool$1java/util/Map$Entry
java/util/MapEntry	ioreactorALcom/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor;connFactory9Lcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;ALcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;addressResolver@Lcom/groupbyinc/flux/common/http/nio/pool/SocketAddressResolver;ELcom/groupbyinc/flux/common/http/nio/pool/SocketAddressResolver;sessionRequestCallbackDLcom/groupbyinc/flux/common/http/nio/reactor/SessionRequestCallback;routeToPoolLjava/util/Map;[Ljava/util/Map;>;leasingRequestsLjava/util/LinkedList;ZLjava/util/LinkedList;>;pendingLjava/util/Set;MLjava/util/Set;leasedLjava/util/Set;	availableLjava/util/LinkedList;completedRequests,Ljava/util/concurrent/ConcurrentLinkedQueue;pLjava/util/concurrent/ConcurrentLinkedQueue;>;maxPerRoute'Ljava/util/Map;lock!Ljava/util/concurrent/locks/Lock;
isShutDown+Ljava/util/concurrent/atomic/AtomicBoolean;defaultMaxPerRouteImaxTotal(Lcom/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor;Lcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;II)VLjava/lang/Deprecated;()VBE
FI/O reactorH)com/groupbyinc/flux/common/http/util/ArgsJnotNull8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;LM
KNConnection factoryPMax per route valueRpositive(ILjava/lang/String;)ITU
KVMax total valueX 	Z!"	\A(Lcom/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool;)VB^
_$%	a
_'(	djava/util/HashMapf
gF)*	ijava/util/LinkedListk
lF,-	njava/util/HashSetp
qF/0	s20	u4-	w9*	y*java/util/concurrent/ConcurrentLinkedQueue{
|F67	~(java/util/concurrent/locks/ReentrantLock?
?F;<	?)java/util/concurrent/atomic/AtomicBoolean?(Z)VB?
??=>	??@	?A@	?thisILcom/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool;>Lcom/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool;?(Lcom/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor;Lcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;Lcom/groupbyinc/flux/common/http/nio/pool/SocketAddressResolver;II)VAddress resolver?resolveRemoteAddress,(Ljava/lang/Object;)Ljava/net/SocketAddress;routeTT;Ljava/lang/Object;resolveLocalAddresscreateEntryV(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/pool/PoolEntry;onLease3(Lcom/groupbyinc/flux/common/http/pool/PoolEntry;)VentryTE;0Lcom/groupbyinc/flux/common/http/pool/PoolEntry;	onReleaseonReuse
isShutdown()Zget??
??shutdown(J)Vjava/io/IOException?
compareAndSet(ZZ)Z??
??
fireCallbacks?E
?java/util/concurrent/locks/Lock?;E??
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext????next()Ljava/lang/Object;????:com/groupbyinc/flux/common/http/nio/reactor/SessionRequest?cancel?E??
l?.com/groupbyinc/flux/common/http/pool/PoolEntry?close?E
??values()Ljava/util/Collection;???java/util/Collection???:com/groupbyinc/flux/common/http/nio/pool/RouteSpecificPool??E
??clear?E???
l??com/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor?????unlock?E??java/lang/Throwable?sessionRequest;;;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;Route
	Time unitConnection pool shut down,com/groupbyinc/flux/common/http/util/Assertscheck(ZLjava/lang/String;)V
6com/groupbyinc/flux/common/http/concurrent/BasicFuture>(Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;)VB
java/util/concurrent/TimeUnittoMillis(J)J !
"5com/groupbyinc/flux/common/http/nio/pool/LeaseRequest$a(Ljava/lang/Object;Ljava/lang/Object;JJLcom/groupbyinc/flux/common/http/concurrent/BasicFuture;)VB&
%'processPendingRequest:(Lcom/groupbyinc/flux/common/http/nio/pool/LeaseRequest;)Z)*
+isDone-?
%.add(Ljava/lang/Object;)Z01
l2
|2timeoutrequestBLcom/groupbyinc/flux/common/http/nio/pool/LeaseRequest;7Lcom/groupbyinc/flux/common/http/nio/pool/LeaseRequest;	completedZleaseTimeoutfuture=Lcom/groupbyinc/flux/common/http/concurrent/BasicFuture;8Lcom/groupbyinc/flux/common/http/concurrent/BasicFuture;~(Ljava/lang/Object;Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;)Ljava/util/concurrent/Future;????????MICROSECONDSB		C
EC(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/concurrent/Future;release4(Lcom/groupbyinc/flux/common/http/pool/PoolEntry;Z)VremoveJ1?KgetRouteM?
?N??
PfreeRI
?SaddFirst(Ljava/lang/Object;)VUV
lW??
YprocessNextPendingRequest[E
\reusableprocessPendingRequestslistIterator()Ljava/util/ListIterator;`a
lbjava/util/ListIteratorde?e?JEehit\Ljava/util/ListIterator;>;Ljava/util/ListIterator;
%NgetStaten?
%ogetDeadline()Jqr
%sjava/lang/SystemucurrentTimeMilliswr
vx%java/util/concurrent/TimeoutExceptionz
{Ffailed(Ljava/lang/Exception;)V}~
%getFreeD(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/pool/PoolEntry;??
??isClosed??
??	isExpired(J)Z??
??
lK?29?
%???
???
?getMax(Ljava/lang/Object;)I??
?getAllocatedCount()I??
??java/lang/Math?max(II)I??
??getLastUsed2()Lcom/groupbyinc/flux/common/http/pool/PoolEntry;??
??3(Lcom/groupbyinc/flux/common/http/pool/PoolEntry;)ZJ?
??size????
l?isEmpty??
l?
removeLast??
l?>com/groupbyinc/flux/common/http/nio/pool/SocketAddressResolver?????????java/net/SocketAddress?connect?(Ljava/net/SocketAddress;Ljava/net/SocketAddress;Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequestCallback;)Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;????getConnectTimeout?r
%???????setConnectTimeout(I)V????	getFuture:()Lcom/groupbyinc/flux/common/http/concurrent/BasicFuture;??
%?
addPendingw(Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;Lcom/groupbyinc/flux/common/http/concurrent/BasicFuture;)V??
??lastUsedi	otherpoolexLjava/io/IOException;	totalUsedfreeCapacitytotalAvailablelocalAddressLjava/net/SocketAddress;
remoteAddresstimoutdeadlinenowexcesspoll??
|?getException()Ljava/lang/Exception;??
%?	getResult??
%?(Ljava/lang/Exception;)Z}?
?java/lang/Exception?91
???
?Ljava/lang/Exception;resultvalidatePendingRequestsrequestCompleted?(Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;)V
getAttachment????
getSession9()Lcom/groupbyinc/flux/common/http/nio/reactor/IOSession;????7com/groupbyinc/flux/common/http/nio/pool/NIOConnFactory?create](Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/nio/reactor/IOSession;)Ljava/lang/Object;?(Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/pool/PoolEntry;?
?o(Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;Lcom/groupbyinc/flux/common/http/pool/PoolEntry;)V9
?	5com/groupbyinc/flux/common/http/nio/reactor/IOSessionT(Lcom/groupbyinc/flux/common/http/nio/reactor/SessionRequest;Ljava/lang/Exception;)V}
?connTC;session7Lcom/groupbyinc/flux/common/http/nio/reactor/IOSession;requestCancelled	cancelled?
?	getStatus?()Lcom/groupbyinc/flux/common/http/nio/reactor/IOReactorStatus;?;com/groupbyinc/flux/common/http/nio/reactor/IOReactorStatusACTIVE=Lcom/groupbyinc/flux/common/http/nio/reactor/IOReactorStatus;	 	compareTo(Ljava/lang/Enum;)I"#
$
requestFailed()Ljava/io/IOException;?'?(requestTimeout5?
?+java/lang/Integer-intValue/?
.0vLjava/lang/Integer;setMaxTotal	Max value5getMaxTotalsetDefaultMaxPerRoutegetDefaultMaxPerRoutesetMaxPerRoute(Ljava/lang/Object;I)VvalueOf(I)Ljava/lang/Integer;<=
.>getMaxPerRoute
getTotalStats2()Lcom/groupbyinc/flux/common/http/pool/PoolStats;.com/groupbyinc/flux/common/http/pool/PoolStatsC(IIII)VBE
DFgetStatsD(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/http/pool/PoolStats;getLeasedCountJ?
?KgetPendingCountM?
?NgetAvailableCountP?
?Q	getRoutes()Ljava/util/Set;keySetUTV(Ljava/util/Collection;)VBX
qY
enumAvailable;(Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;)V6com/groupbyinc/flux/common/http/pool/PoolEntryCallback]process_?^`?h_E
cpurgePoolMapeE
fLjava/util/Iterator;@Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;8Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;
enumLeasedenumEntriesO(Ljava/util/Iterator;Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;)VentrySetnTogetValueq?raLjava/util/Map$Entry;>;Ljava/util/Map$Entry;wLjava/util/Iterator;>;>;	closeIdle#(JLjava/util/concurrent/TimeUnit;)VB(Lcom/groupbyinc/flux/common/http/nio/pool/AbstractNIOConnPool;J)VBy
z[\
|idletimetimecloseExpired
ztoString()Ljava/lang/String;java/lang/StringBuilder?
?F	[leased: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??
][available: ?][pending: ?]???
??bufferLjava/lang/StringBuilder;(Ljava/lang/Object;Z)VHI
?x0x1	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
Deprecated?(Lcom/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor;Lcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;II)VRuntimeVisibleAnnotations?(Lcom/groupbyinc/flux/common/http/nio/reactor/ConnectingIOReactor;Lcom/groupbyinc/flux/common/http/nio/pool/NIOConnFactory;Lcom/groupbyinc/flux/common/http/nio/pool/SocketAddressResolver;II)V(TT;)Ljava/net/SocketAddress;(TT;TC;)TE;(TE;)V
StackMapTable
ExceptionsL(TT;)Lcom/groupbyinc/flux/common/http/nio/pool/RouteSpecificPool;?(TT;Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;)Ljava/util/concurrent/Future;?(TT;Ljava/lang/Object;JJLjava/util/concurrent/TimeUnit;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;)Ljava/util/concurrent/Future;y(TT;Ljava/lang/Object;Lcom/groupbyinc/flux/common/http/concurrent/FutureCallback;)Ljava/util/concurrent/Future;9(TT;Ljava/lang/Object;)Ljava/util/concurrent/Future;(TE;Z)VE(Lcom/groupbyinc/flux/common/http/nio/pool/LeaseRequest;)Z(TT;)I(TT;I)V5(TT;)Lcom/groupbyinc/flux/common/http/pool/PoolStats;()Ljava/util/Set;C(Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;)V\(Ljava/util/Iterator;Lcom/groupbyinc/flux/common/http/pool/PoolEntryCallback;)V
SourceFileInnerClassesRuntimeInvisibleAnnotations!	 !"?#$%?&'()*?+,-?./0?120?34-?567?89*?:;<=>B?@BA@+BC?q?*?G+I?OW,Q?OWS?WWY?WW*+?[*,?]*?Y*?`?b*?Y*?c?e*?gY?h?j*?lY?m?o*?qY?r?t*?qY?r?v*?lY?m?x*?gY?h?z*?|Y?}?*??Y????*??Y????*??*????4???? ?!"??@?A@?????!#?Vghijk!l&m+n7{C|N}Y~do?z?????????????????DB????*?G+I?OW,Q?OW-??OWS?WWY?WW*+?[*,?]*-?b*?Y*?c?e*?gY?h?j*?lY?m?o*?qY?r?t*?qY?r?v*?lY?m?x*?|Y?}?*?gY?h?z*??Y????*??Y????*??*????>???? ?!"?$%??@?A@? ????!#?$&?Z?????!?)?.?3?8?D?O?Z?e?p?{??????????????????R?????????????????D???R?????????????????D???????Q??????????????????Q??????????????????Q??????????????????D*????????????????Y*??????*??*????*?t??N-???-????:?????*?x??N-???-????:?ҧ??*?v??N-???-????:?ҧ??*?j????N-???-????:?ݧ??*?j??*?v??*?t??*?x??*?o??*?[??*?????:*????????????f
7??#??]??I?????o?????????????*]???????????f????7?>?A?]?b?e???????????????????????????????+
?#??????	?????~?
??????**?j+????M,??Y*+??M*?j+,?W,?? *??*????? *??*?????????(???(?????	
*+,!!???>
??
??
?
?
	

? 
??
??

?????	?+?OW?OW*????????Y?:	*????!	??!?#?	7
?%Y+,
	?(:*?,6
?/?
?
*?o?3W?/?
*??4W*?????:*?????*??	?:??????pLB5?
]168e)9:
???????????;??	?
1~<>	?4]167???????
1~<=	?F
&1:L]er|???????@?(@?1%?K?
????|*+,@?D-?F??*?????
? ????
?$??G?h*+,@?D?F?? ???????????(??HI?Kp+??*??????*????*?v+?L?.*+?O?QN-+?T?*?x+?X*+?Z?+??*?]*?????:*?????*???Q]]_]?*/"??p??p??p^:? /"??p??p???J-.0135&6/75899A:I<M>QAZB]AkCoD?
?8??K?
??_E??F*?o?cL+?f?7+?g?%M*,?,>,?/??	+?i,?/?*?,?4W??Ʊ?*'68!!9:F??>jl? '67F??>jk?*
GHIJ!K,L2N9OBQER??e?#%?[E?K*?o?cL+?f?<+?g?%M*,?,>,?/??	+?i,?/?*?,?4W???????*,68!&9:K??Cjl? ,67K??Cjk?2UVWX!Y,Z2\9]B_F`GbJc??e?#%?)*???+?mM+?pN+?t7?y7??+?{Y?|???*,?Q:-??:		??0	???	?y???	??*?x	??W	?T???	?-*?x	??W*?v	??W+	??*	??*	???*,??6
??`
d??6?96?/??:

?? 
??*?x
??W
??W??????
??*?t??*?v??`6*??d??6

??*?x??6
d?1*?x???'*?x????:??*?O?Q:??W*?b,??:*?b,??:?
:+???*?[,*?e??:+??”?+?????6??*?t??W+?̶???bz}??????
?3?@J??Z??????@??@
+??@z[??ng???:???"?@????68???
????????1???9???	?39@
?#?@?R???
J??Z??????67???1???9???	??:fg
hjkl(m*p1s9t>uAwTxYyczns?}????????????????????????????????????? ?"?+?4?>?J?O?Z?b?n?z?}???????????????????p?*%????.?????2??Z??	???&?B?#
%?????E?D*????%YL?7+??M+??N+??:-?,-??W??
,??W?,??W?????4,<>'??!??D??868?*,<=!??D??867?.?????#?,?1?;?@?C???+%????E?Qu*?????y@*?o?cN-?f?;-?g?%:?t7??-?i?{Y?|??*??4W???*?????:*?????*???	Vbbdb?4)*680#??
I??Ajlu??? )*67Ajku???B?	?
???)?0?7?=?I?S?V?_?b?p?t???e=?K?
?????*??????+??M*????*?t+?LW*,?QN+??:*?],?:-+?:*?v??W-+?
*???:-+?*?????:*?????*???4dg?p||~|?RB"?K??i??,D??4<????6?}???4B"K??,D?????}???R?
????&?,?4?B?K?W?^?d?g?i?p?y?|??????$?[????K?
??,f*??????+??M*????*?t+?LW*,?QN-+?*?[??!?%?*?]*?????:*?????*???GSSUS?*,??f??f6?T??? ,??f??T???:?
&,	1
CGPSae??;K?
&??%Z*??????+??M*????*?t+?LW*,?QN-++?)?*?]*?????:*?????*???;GGIG?*,??Z??Z6?H??? ,??Z??H???6

&,7;!D"G!U#Y$??;??
*??T*??????+??M*????*?t+?LW*,?QN-+?,*?]*?????:*?????*???5AACA?*,	??T??T6?B??? ,	??T??B???6
'
(,-/&0,11254>5A4O6S7??5??
????*?z+???.M,?,?1?*???? ????23??????:;<>??.??4???/6?WW*????*??*?????M*????,??""#"?/??/?@?/???DEGIJ"I.K?b?7???%*????*??<*?????M*????,?	?%???%???O	QS?Y?8???/6?WW*????*??*?????M*????,??""#"?/??/?@?/???YZ\^_"^.`?b?9???%*????*??<*?????M*????,?	?%???%???d	fh?Y?:;??A+?OW6?WW*????*?z+???W*?????N*????-??(4454? A??A??A?@?A??A???"nopr(t1u4t@v?t???@???.+?OW*????*+??=*?????N*????-?""#"?.??.???.??.???z{}?b???AB??E*?????DY*?v??*?t??*?x??*???GL*????+?M*????,?	.99:9?E???E????	?.??y?HI??I+?OW*????*+?QM?DY,?L,?O,?R*+???GN*????-?:*?????0;;=;? $??I??I??? $??I??I???????0??{???ST??1*?????qY*?j?W?ZL*????+?M*????,?	%%&%?1???1????	???e???[\?ho*????*?x??M,???5,????N+-?a-???*-?O?Q:-??W,?b???*?d*?g*?????:*??????	T``b`?4<
??$%??Cj?o??o
j?4<
??$%??Cjho??o
i?B?	???$?+?2?<?C?I?L?P?T?]?`?n????7?^?
??k\?O*????*?v??M,???,????N+-?a???*?d*?????:*??????	4@@B@?*&??!j?O??O
j?*&??!jhO??O
i?.?	???&?-?0?4?=?@?N?????^?
??lm??"+???+????N,-?a???*?d??*??"??"j?"
j?*??"??"jh"
i??	????!??????DeE??=*?j?p??L+???'+???M,?s??N-???	+?b??ֱ?*"?u,
??=??.j??*"?t,
??=??.jv?"???"?,?3?9?<??
??)wx??0-?OW-?#7	??	7?ye7*?Y*?{?}??40??0~?0	!?!???0????????!?/???E?`?y@*?Y*???}??????????	
????H??Y??L+???W+*?v??W+???W+*?x??W+???W+*?t??W+???W+????H??@???H???&	!*2;C AH??Z
*+?????? 
??
??
?:?
???H??
?2	?
e





© 2015 - 2024 Weber Informatics LLC | Privacy Policy