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

io.netty.handler.traffic.GlobalTrafficShapingHandler.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????2P4io/netty/handler/traffic/GlobalTrafficShapingHandler6io/netty/handler/traffic/AbstractTrafficShapingHandler GlobalTrafficShapingHandler.java*Lio/netty/channel/ChannelHandler$Sharable;;io/netty/handler/traffic/GlobalTrafficShapingHandler$ToSendToSend?io/netty/handler/traffic/GlobalTrafficShapingHandler$PerChannel

PerChannel6io/netty/handler/traffic/GlobalTrafficShapingHandler$1
(io/netty/channel/ChannelHandler$Sharableio/netty/channel/ChannelHandlerSharable
channelQueues$Ljava/util/concurrent/ConcurrentMap;zLjava/util/concurrent/ConcurrentMap;
queuesSize(Ljava/util/concurrent/atomic/AtomicLong;maxGlobalWriteSizeJcreateGlobalTrafficCounter2(Ljava/util/concurrent/ScheduledExecutorService;)Vjava/lang/NullPointerExceptionexecutor(Ljava/lang/String;)V!"
#'io/netty/handler/traffic/TrafficCounter%GlobalTC'
checkInterval)	*}(Lio/netty/handler/traffic/AbstractTrafficShapingHandler;Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/String;J)V!,
&-setTrafficCounter,(Lio/netty/handler/traffic/TrafficCounter;)V/0
1start()V34
&5this6Lio/netty/handler/traffic/GlobalTrafficShapingHandler;/Ljava/util/concurrent/ScheduledExecutorService;tc)Lio/netty/handler/traffic/TrafficCounter;userDefinedWritabilityIndex()I6(Ljava/util/concurrent/ScheduledExecutorService;JJJJ)V(JJJJ)V!?
@(io/netty/util/internal/PlatformDependentBnewConcurrentHashMap&()Ljava/util/concurrent/ConcurrentMap;DE
CF	H&java/util/concurrent/atomic/AtomicLongJ!4
KL	N	R
T
writeLimit	readLimitmaxTime5(Ljava/util/concurrent/ScheduledExecutorService;JJJ)V(JJJ)V!Z
[4(Ljava/util/concurrent/ScheduledExecutorService;JJ)V(JJ)V!^
_3(Ljava/util/concurrent/ScheduledExecutorService;J)V(J)V!b
c+(Lio/netty/util/concurrent/EventExecutor;)V
L(Lio/netty/util/concurrent/EventExecutor;getMaxGlobalWriteSize()JsetMaxGlobalWriteSizegetki
KlreleasetrafficCountero;	pstopr4
&sgetOrSetPerChannelk(Lio/netty/channel/ChannelHandlerContext;)Lio/netty/handler/traffic/GlobalTrafficShapingHandler$PerChannel;&io/netty/channel/ChannelHandlerContextwchannel()Lio/netty/channel/Channel;yzx{java/lang/Object}hashCode=
~?java/lang/Integer?valueOf(I)Ljava/lang/Integer;??
??"java/util/concurrent/ConcurrentMap?&(Ljava/lang/Object;)Ljava/lang/Object;k???;(Lio/netty/handler/traffic/GlobalTrafficShapingHandler$1;)V!?
?java/util/ArrayDeque?
?L
messagesQueueLjava/util/ArrayDeque;??	?	queueSize?	?milliSecondFromNano?i
&?lastReadTimestamp?	?lastWriteTimestamp?	?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????io/netty/channel/Channel?ctx(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/Channel;keyLjava/lang/Integer;
perChannelALio/netty/handler/traffic/GlobalTrafficShapingHandler$PerChannel;handlerAdded+(Lio/netty/channel/ChannelHandlerContext;)Vjava/lang/Exception?uv
???
?handlerRemovedremove????isActive()Z????iterator()Ljava/util/Iterator;??
??java/util/Iterator?hasNext????next()Ljava/lang/Object;????toSendLjava/lang/Object;??	?
calculateSize(Ljava/lang/Object;)J??
?bytesRealWriteFlowControl?b
&?	addAndGet(J)J??
K?promise!Lio/netty/channel/ChannelPromise;??	?writeU(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;??x?io/netty/buffer/ByteBuf?n?
??clear?4
??java/lang/Throwable?releaseWriteSuspended??
?releaseReadSuspended??
???
?size=Lio/netty/handler/traffic/GlobalTrafficShapingHandler$ToSend;checkWaitReadTime-(Lio/netty/channel/ChannelHandlerContext;JJ)JX	?waitnowinformReadOperation,(Lio/netty/channel/ChannelHandlerContext;J)VsubmitWritea(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JJJLio/netty/channel/ChannelPromise;)VisEmpty?
?p(JLjava/lang/Object;JLio/netty/channel/ChannelPromise;Lio/netty/handler/traffic/GlobalTrafficShapingHandler$1;)V!
addLast(Ljava/lang/Object;)V
?	checkWriteSuspend-(Lio/netty/channel/ChannelHandlerContext;JJ)V

io/netty/channel/ChannelPromisesetUserDefinedWritability,(Lio/netty/channel/ChannelHandlerContext;Z)V
relativeTimeAction	*()Lio/netty/util/concurrent/EventExecutor;x?(Lio/netty/handler/traffic/GlobalTrafficShapingHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/traffic/GlobalTrafficShapingHandler$PerChannel;J)V!
java/util/concurrent/TimeUnitMILLISECONDSLjava/util/concurrent/TimeUnit; !	"&io/netty/util/concurrent/EventExecutor$schedule`(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture;&'%(	newToSendmsg
writedelaydelayglobalSizeExceededZ	futureNowforSchedulesendAllValidm(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/traffic/GlobalTrafficShapingHandler$PerChannel;J)V	pollFirst4?
?5?	7addFirst9
?:flush*()Lio/netty/channel/ChannelHandlerContext;<=x>
access$20023
Ax0x1x2x3	SignatureCodeLocalVariableTableLineNumberTable
StackMapTable
Exceptions
SourceFileInnerClassesRuntimeVisibleAnnotations!GH?(+?
?Y ?$??&Y*+(*?+?.M*,?2,?6?I (78(9
:;Jjkmn#o'pK<=H,?I78Jt!>H?	
** ?A*?G?I*?KY?M?O*P?S*+?U?I>*78*9*V*W*)*XJ?RW]$?)?!YH?(* ?\*?G?I*?KY?M?O*P?S*+?U?I4(78(9(V(W()J?	RW]"?'?!]H?&* ?`*?G?I*?KY?M?O*P?S*+?U?I*&78&9&V&WJ?RW] ?%?!aHv$* ?d*?G?I*?KY?M?O*P?S*+?U?I $78$9$)J?RW]?#?!eHk#*?f*?G?I*?KY?M?O*P?S*+?U?I#78#gJ?RW]?"?hiH/*?S?I78J?jbH>*?S?I78J
??iH2*?O?m?I78J?n4H6*?q?t?I78J
??uvH?a+?|M,????N*?I-???:?>?Y??:??Y????	??????????*?I-??W?I4a78a??Zy?R??C??J.????#?-?9???G?Q?^?K?^????HH*+??W*+???I78??JL???H+?|M,????N*?I-???:??Y:?,???e????:???N???:*?ж?7*?q??Y??e??*?Ou??X+???߹?W????K*?O??u??X????:???)???:?????????W???????ç:
?
?*+??*+??*+???)?????IR]1?R<?????78???y???????Jb	
#)
2R]fr}????????? ?!?"#K3?<x??~??T??,?M??L???H?E+?|????:*?I???:?# *???? a??e*????*??A ?I>E78E??E?E?7??'??J'()#*>+C.K?C???H?*+?|????:*?I???:?	 ???I4*78*??*?????J345#6)8K?)??H?	+?|:

????:*?I???:?
*+??:7
6Y:?	??+???? *?q!??+,	??W??ñ
*????
a??e*????	*??7
?Y
a,!	?:???
Y??!a??*?O!??X*+
???*?O?m*?S??6ç:???	*+??7:+??Y*+?
?#?)W?;i?j?????I??B*?78??+??,???	y?

??"????5*?2?-
5?./?#01?JvLMN"O'R.U2V5X;YMZU[_\f]j_?`?b?c?d?e?f?g?h?j?k?l?n?opvKj?.???;~"?N?
x~??~??x~??
23Hs
?,Y:?,???6?:?g?!??B?87*?q??,Y??e??*?Ou??X+???߹?W,!???,???;?,???6?:???,????*+??ç:	?	?+??W??????I>'5?x*??78????????JNz{|} ~'0?;?F?W?\?_?h?k|z?????????K?~?M?E??@HP*+,!?B?I*C8D?E?FJNMN"	&	O




© 2015 - 2025 Weber Informatics LLC | Privacy Policy