classes.io.netty.handler.traffic.AbstractTrafficShapingHandler.class Maven / Gradle / Ivy
???? 2? _ ? _ ? ? ?
e ? :? _ ? ? _ ? ? _ ? @ _ ? ? ?
?
_ ? _ ? _ _
_
_
_
_
D
_
_
- ?
-
-
-
-
_
-!" _#
$%&
;'
( )*+,-.
_/
01 D2
D3
4
56
_7
_8
e9:;<
=>
-?@ABCDE
-FGH
YIJ [K????????L
MN
OPQ
RSTU ReopenReadTimerTask InnerClasses logger /Lio/netty/util/internal/logging/InternalLogger; DEFAULT_CHECK_INTERVAL J
ConstantValue DEFAULT_MAX_TIME DEFAULT_MAX_SIZE MINIMAL_WAIT trafficCounter )Lio/netty/handler/traffic/TrafficCounter;
writeLimit readLimit maxTime
checkInterval READ_SUSPENDED Lio/netty/util/AttributeKey; Signature 1Lio/netty/util/AttributeKey; REOPEN_TASK 2Lio/netty/util/AttributeKey;
maxWriteDelay maxWriteSize userDefinedWritabilityIndex I .CHANNEL_DEFAULT_USER_DEFINED_WRITABILITY_INDEX -GLOBAL_DEFAULT_USER_DEFINED_WRITABILITY_INDEX 4GLOBALCHANNEL_DEFAULT_USER_DEFINED_WRITABILITY_INDEX setTrafficCounter ,(Lio/netty/handler/traffic/TrafficCounter;)V Code LineNumberTable LocalVariableTable this 8Lio/netty/handler/traffic/AbstractTrafficShapingHandler; newTrafficCounter ()I
StackMapTable (JJJJ)VL (JJJ)V (JJ)V ()V (J)V configure
newWriteLimit newReadLimit newCheckInterval
getWriteLimit ()J
setWriteLimit getReadLimit setReadLimit getCheckInterval setCheckInterval setMaxTimeWait getMaxTimeWait getMaxWriteDelay setMaxWriteDelay getMaxWriteSize setMaxWriteSize doAccounting counter releaseReadSuspended +(Lio/netty/channel/ChannelHandlerContext;)V ctx (Lio/netty/channel/ChannelHandlerContext; channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V attr Lio/netty/util/Attribute;
reopenTask Ljava/lang/Runnable; config Lio/netty/channel/ChannelConfig; wait msg Ljava/lang/Object; size now LocalVariableTypeTable /Lio/netty/util/Attribute;VWXY%
ExceptionsZ checkWaitReadTime -(Lio/netty/channel/ChannelHandlerContext;JJ)J informReadOperation ,(Lio/netty/channel/ChannelHandlerContext;J)V isHandlerActive +(Lio/netty/channel/ChannelHandlerContext;)Z suspended Ljava/lang/Boolean;1 read write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V promise !Lio/netty/channel/ChannelPromise; submitWrite _(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JLio/netty/channel/ChannelPromise;)V delay
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; a(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;JJJLio/netty/channel/ChannelPromise;)V channelRegistered setUserDefinedWritability ,(Lio/netty/channel/ChannelHandlerContext;Z)V writable Z cob (Lio/netty/channel/ChannelOutboundBuffer;[ checkWriteSuspend -(Lio/netty/channel/ChannelHandlerContext;JJ)V queueSize releaseWriteSuspended +()Lio/netty/handler/traffic/TrafficCounter; toString ()Ljava/lang/String; builder Ljava/lang/StringBuilder;
calculateSize (Ljava/lang/Object;)J
access$000 1()Lio/netty/util/internal/logging/InternalLogger;
SourceFile "AbstractTrafficShapingHandler.java h i p q ;io/netty/handler/traffic/GlobalChannelTrafficShapingHandler 4io/netty/handler/traffic/GlobalTrafficShapingHandler ? ? t k u k | k } k "java/lang/IllegalArgumentException maxTime must be positive ?\ ~ ? ~ r k s k ? ? ? ? ? ?]^ ?_ ? maxWriteDelay must be positive v wV ?`abYcdefg ?hXij ? ?kl ? ?mno java/lang/StringBuilder Read suspend: pqprpstopu ? ? ? ?v\ z wwx java/lang/Runnable Jio/netty/handler/traffic/AbstractTrafficShapingHandler$ReopenReadTimerTask ? ?yz{|}~? Suspend final status => will reopened at: ? ??? java/lang/Boolean? ??? ???l Write suspend: ? ? ? ? ? ??????[ ?? ?? !TrafficShaping with Write Limit:
Read Limit: CheckInterval: maxDelay:
maxSize: and Counter: p? none io/netty/buffer/ByteBuf? ? io/netty/buffer/ByteBufHolder?? 6io/netty/handler/traffic/AbstractTrafficShapingHandler????? ? .READ_SUSPENDED?a? .REOPEN_TASK %io/netty/channel/ChannelDuplexHandler &io/netty/channel/ChannelHandlerContext java/lang/Object io/netty/channel/ChannelConfig io/netty/util/Attribute java/lang/Exception &io/netty/channel/ChannelOutboundBuffer (Ljava/lang/String;)V 'io/netty/handler/traffic/TrafficCounter milliSecondFromNano resetAccounting 7(Lio/netty/util/AttributeKey;)Lio/netty/util/Attribute; valueOf (Z)Ljava/lang/Boolean; set (Ljava/lang/Object;)V channel ()Lio/netty/channel/Channel; io/netty/channel/Channel "()Lio/netty/channel/ChannelConfig; setAutoRead #(Z)Lio/netty/channel/ChannelConfig; readTimeToWait (JJJJ)J -io/netty/util/internal/logging/InternalLogger isDebugEnabled ()Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (J)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder;
isAutoRead (Z)Ljava/lang/StringBuilder; debug get ()Ljava/lang/Object; executor *()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; FALSE equals (Ljava/lang/Object;)Z *()Lio/netty/channel/ChannelHandlerContext; writeTimeToWait unsafe Unsafe #()Lio/netty/channel/Channel$Unsafe; io/netty/channel/Channel$Unsafe outboundBuffer *()Lio/netty/channel/ChannelOutboundBuffer; (IZ)V (I)V -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
readableBytes content ()Lio/netty/buffer/ByteBuf; 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; java/lang/Class getName io/netty/util/AttributeKey 0(Ljava/lang/String;)Lio/netty/util/AttributeKey;! _ e h i j k l m k l n k l o k l * p q B r k B s k D t k D u k v w x y z w x { @ | k @ } k ~ ? l ? ? l ? ? l ? ) ? ? ? > *+? ? ?
? ? ? ? ? ? q ~ ? ? X *? ? ?*? ? ?? ? ? ? ? ? ? ? ? ? ? ? ? ? ? P*? * ? * ? * ? * ? ??
? Y? ?**? ? *? *!? *? *? ? ? 6
? [ ` j n ? ' ? 1 ? 9 ? > ? C ? I ? O ? ? 4 P ? ? P r k P s k P u k P t k ? ? 1 ? ? ? ? X *! ? ? ?
? ? ? * ? ? r k s k u k ? ? ? O
*! ? ? ?
? ? ?
? ?
r k
s k ? ? ? ;
* ? ? ?
? ? ?
? ? ? ? ? C * ? ? ?
?
? ? ? ? u k ? ? ? ]
*!? *? ? ? ? ? ? ? *
? ?
? k
? k
? k ? ? ? s *? *!? *? ?
*? ? ? ? ?
? ? ? ? k ? k ? ? ? ? a *? *? ? *? *? ? ? ? ? ? ? ? k ? ? ? ? / *? ? ? ? ? ? ? ? ? ` *? *? ?
*? ? ? ? ? ' ( ) + ? ? ? r k ? ? ? ? / *? ? ? 1 ? ? ? ? ? ? ` *? *? ?
*? ? ? ? ? > ? @ B ? ? ? s k ? ? ? ? / *? ? ? H ? ? ? ? ? ? ^ *? *? ? *? ? ? ? O P Q S ? ? ? u k ? ? ? ? _ ??
? Y? ?*? ? ? a b d e ? ? ? t k ? ? ? ? / *? ? ? k ? ? ? ? ? ? / *? ? ? r ? ? ? ? ? ? _ ??
? Y? ?*? ? ? ? ? ? ? ? ? ? | k ? ? ? ? / *? ? ? ? ? ? ? ? ? ? > *? ? ?
? ? ? ? ? } k ? ? ? 5 ? ? ? ? ? ? ? q ? ? ? a %+? ? ! ? "? # +? $ ? % ? & W? ? ? ? $? ? % ? ? % ? ? ? ? ? e H*,? 'B? 7! ??**? !*? *? ? (7*+? )7 *??+? $ ? % : ? ? , ? :? ? -Y? ./? 0? 1:? 2 ? 3 ? 4:? 2+? 5? 4? 6? 7 ? 3 ? ?+? 5? ? ? & W+? ? ! ? "? # +? 8? ! :
? 9 ? ::? ? ;Y+? <:
? # +? = ? >? ? W? ? , ? :? ? -Y? .@? 0 ? 3 ? 4:? 2+? 5? 4A? 0? 1? 6? 7 *+? B+,? C W? ? ^ ? ? ? ? %? 0? 9? F? Q? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???8???G? ? \ ? y ? ?
? m ? ? F ? ? ? % ? k H ? ? H ? ? H ? ? B ? k = ? k ? ? y ? ?
? 3 ? ? ? ? ? ? ? Z ? ?? T ? ? ? ? ? ? ? ? J ? ? ? * ? ? ? ? ? k ? k ? ? ? ? ? ? ? ? ? ? ? ? k ? ? ? o &*? ? ! ? 9 ? DL+?
? E+? F? ? ? ?
? &