classes.io.netty.handler.traffic.GlobalChannelTrafficShapingHandler.class Maven / Gradle / Ivy
???? 2f
?R=???>???????
?STU
VWX ?Y
Z
?[
I\
?]
^_ ?`a
b ?c ?d ?e ?f
?g ?h ?i
?j
?k
?l
?b ?m ?n ?opqr???????stuvwxwyz -{
I|
I}s~ ? ??
?
??
??
?
?
I?
I? ??
I???
??
??s?
-b?
Fb -???
Jb?
J?
J?
J?
I? -? -? -?s?
??
I?
??s???
Fv? [?
??
I?
? [????
b?
F?
??
??
??
?? ??
I?
??
???? ?????
J?
J???
J?
?????? ????
???? ??????
??? ??????
?????
??
??
I??
??
F?
[?
F?
??
?? [??
??
F? [?
F???
J?
?????
??? ToSend InnerClasses
PerChannel logger /Lio/netty/util/internal/logging/InternalLogger;
channelQueues $Ljava/util/concurrent/ConcurrentMap; Signature ?Ljava/util/concurrent/ConcurrentMap;
queuesSize (Ljava/util/concurrent/atomic/AtomicLong; cumulativeWrittenBytes cumulativeReadBytes maxGlobalWriteSize J writeChannelLimit readChannelLimit DEFAULT_DEVIATION F
ConstantValue
MAX_DEVIATION DEFAULT_SLOWDOWN DEFAULT_ACCELERATION maxDeviation accelerationFactor slowDownFactor readDeviationActive Z writeDeviationActive createGlobalTrafficCounter 2(Ljava/util/concurrent/ScheduledExecutorService;)V Code LineNumberTable LocalVariableTable this =Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler; executor /Ljava/util/concurrent/ScheduledExecutorService; tc )Lio/netty/handler/traffic/TrafficCounter;
StackMapTable userDefinedWritabilityIndex ()I 8(Ljava/util/concurrent/ScheduledExecutorService;JJJJJJ)V writeGlobalLimit readGlobalLimit
checkInterval maxTime 7(Ljava/util/concurrent/ScheduledExecutorService;JJJJJ)V 6(Ljava/util/concurrent/ScheduledExecutorService;JJJJ)V 3(Ljava/util/concurrent/ScheduledExecutorService;J)V ()F setMaxDeviation (FFF)V computeDeviationCumulativeBytes ()V value
perChannel HLio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$PerChannel; i$ Ljava/util/Iterator; maxWrittenBytes maxReadBytes minWrittenBytes minReadBytes multiple??z doAccounting ,(Lio/netty/handler/traffic/TrafficCounter;)V counter computeBalancedWait (FFJ)J maxLocal maxGlobal wait ratio getMaxGlobalWriteSize ()J setMaxGlobalWriteSize (J)V configureChannel (JJ)V
newWriteLimit newReadLimit now getWriteChannelLimit setWriteChannelLimit
writeLimit getReadChannelLimit setReadChannelLimit readLimit release getOrSetPerChannel r(Lio/netty/channel/ChannelHandlerContext;)Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$PerChannel; ctx (Lio/netty/channel/ChannelHandlerContext; channel Lio/netty/channel/Channel; key Ljava/lang/Integer;?? handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V
Exceptions? handlerRemoved size toSend DLio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$ToSend;??? channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V maxLocalRead
maxGlobalRead attr Lio/netty/util/Attribute;
reopenTask Ljava/lang/Runnable; config Lio/netty/channel/ChannelConfig;
waitGlobal msg Ljava/lang/Object; LocalVariableTypeTable /Lio/netty/util/Attribute;??? checkWaitReadTime -(Lio/netty/channel/ChannelHandlerContext;JJ)J informReadOperation ,(Lio/netty/channel/ChannelHandlerContext;J)V maximumCumulativeWrittenBytes maximumCumulativeReadBytes channelTrafficCounters ()Ljava/util/Collection; C()Ljava/util/Collection; write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V
maxLocalWrite maxGlobalWrite promise !Lio/netty/channel/ChannelPromise;? submitWrite a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JJJLio/netty/channel/ChannelPromise;)V newToSend
writedelay delay globalSizeExceeded futureNow forSchedule? sendAllValid t(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$PerChannel;J)V toString ()Ljava/lang/String;
access$100 ?(Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$PerChannel;J)V x0 x1 x2 x3
SourceFile 'GlobalChannelTrafficShapingHandler.java RuntimeVisibleAnnotations? Sharable *Lio/netty/channel/ChannelHandler$Sharable;AB ? ? "java/lang/IllegalArgumentException Executor must not be null ?? 4io/netty/handler/traffic/GlobalChannelTrafficCounter GlobalChannelTC ? ? ?? ? ? ? ? ? &java/util/concurrent/atomic/AtomicLong ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? maxDeviation must be <= 0.4 slowDownFactor must be >= 0 accelerationFactor must be <= 0/
?
Fio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$PerChannel ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? #maxGlobalWriteSize must be positive ? ? ? ? ??? ?? java/util/ArrayDeque 'io/netty/handler/traffic/TrafficCounter java/lang/StringBuilder ChannelTC CD ?!" ?# ?$ ?%&' ?(?)
Bio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$ToSend"*+, ?-.561/ io/netty/buffer/ByteBuf
0 ?123 ? ? ?45 ? ?()6 ? ?78
Read Suspend: 9:?;
<=>??@ABCDEF?GHC java/lang/Runnable Jio/netty/handler/traffic/AbstractTrafficShapingHandler$ReopenReadTimerTask ReopenReadTimerTask ? ?IJKLMNO Suspend final status => will reopened at: *+PQ =io/netty/handler/traffic/GlobalChannelTrafficShapingHandler$1 ?RS ?T5 Write suspend: 89U
?VWGXYZ[\ ? =io/netty/handler/traffic/GlobalChannelTrafficShapingHandler$2 ?F] ?^G_` ?aCD Write Channel Limit: Read Channel Limit: ;io/netty/handler/traffic/GlobalChannelTrafficShapingHandlerbcd 6io/netty/handler/traffic/AbstractTrafficShapingHandler java/util/Iterator io/netty/channel/Channel java/lang/Integer java/lang/Exception &io/netty/channel/ChannelHandlerContext java/lang/Object java/lang/Throwable io/netty/channel/ChannelConfig io/netty/util/Attribute io/netty/channel/ChannelPromisee (io/netty/channel/ChannelHandler$Sharable (Ljava/lang/String;)V ?(Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler;Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/String;J)V setTrafficCounter start (JJJJ)V (io/netty/util/internal/PlatformDependent newConcurrentHashMap &()Ljava/util/concurrent/ConcurrentMap; (JJJ)V "java/util/concurrent/ConcurrentMap values java/util/Collection iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; channelTrafficCounter set get milliSecondFromNano resetAccounting trafficCounter stop ()Lio/netty/channel/Channel; hashCode valueOf (I)Ljava/lang/Integer; &(Ljava/lang/Object;)Ljava/lang/Object;
messagesQueue Ljava/util/ArrayDeque; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; }(Lio/netty/handler/traffic/AbstractTrafficShapingHandler;Ljava/util/concurrent/ScheduledExecutorService;Ljava/lang/String;J)V queueSize lastReadTimestamp lastWriteTimestamp put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; resetCumulativeTime remove isActive
calculateSize (Ljava/lang/Object;)J bytesRealWriteFlowControl addAndGet (J)J U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; clear releaseWriteSuspended releaseReadSuspended getReadLimit readTimeToWait (JJJJ)J "()Lio/netty/channel/ChannelConfig; -io/netty/util/internal/logging/InternalLogger isDebugEnabled (J)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder;
isAutoRead (Z)Ljava/lang/StringBuilder; isHandlerActive +(Lio/netty/channel/ChannelHandlerContext;)Z debug setAutoRead #(Z)Lio/netty/channel/ChannelConfig; READ_SUSPENDED Lio/netty/util/AttributeKey; 7(Lio/netty/util/AttributeKey;)Lio/netty/util/Attribute; java/lang/Boolean (Z)Ljava/lang/Boolean; (Ljava/lang/Object;)V REOPEN_TASK *()Lio/netty/util/concurrent/EventExecutor; java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; &io/netty/util/concurrent/EventExecutor schedule `(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture; fireChannelRead <(Ljava/lang/Object;)Lio/netty/channel/ChannelHandlerContext; @(Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler;)V
getWriteLimit writeTimeToWait isEmpty w(JLjava/lang/Object;JLio/netty/channel/ChannelPromise;Lio/netty/handler/traffic/GlobalChannelTrafficShapingHandler$1;)V addLast checkWriteSuspend -(Lio/netty/channel/ChannelHandlerContext;JJ)V setUserDefinedWritability ,(Lio/netty/channel/ChannelHandlerContext;Z)V relativeTimeAction pollFirst addFirst flush *()Lio/netty/channel/ChannelHandlerContext; (I)V 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; io/netty/channel/ChannelHandler ! ? ? ? ? ? ? ? ? ? ? ? ? ? ? @ ? ? B ? ? B ? ? ? ? ? ? ? ? ? ? ? ? ? ? B ? ? B ? ? B ? ? B ? ? B ? ? &