io.netty.handler.traffic.AbstractTrafficShapingHandler.class Maven / Gradle / Ivy
???? 2? 6io/netty/handler/traffic/AbstractTrafficShapingHandler %io/netty/channel/ChannelDuplexHandler "AbstractTrafficShapingHandler.java Jio/netty/handler/traffic/AbstractTrafficShapingHandler$ReopenReadTimerTask ReopenReadTimerTask io/netty/channel/Channel$Unsafe io/netty/channel/Channel Unsafe logger /Lio/netty/util/internal/logging/InternalLogger; DEFAULT_CHECK_INTERVAL J ? DEFAULT_MAX_TIME :? DEFAULT_MAX_SIZE @ MINIMAL_WAIT
trafficCounter )Lio/netty/handler/traffic/TrafficCounter;
writeLimit readLimit maxTime
checkInterval READ_SUSPENDED Lio/netty/util/AttributeKey; 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 4 this 8Lio/netty/handler/traffic/AbstractTrafficShapingHandler; newTrafficCounter ()I (JJJJ)V ()V : <
= ! ? " A ? ( E ) G "java/lang/IllegalArgumentException I maxTime must be positive K (Ljava/lang/String;)V : M
J N * 9
P * + R T V (JJJ)V : ;
Y (JJ)V (J)V configure ] [
^ ] \
`
newWriteLimit newReadLimit newCheckInterval 'io/netty/handler/traffic/TrafficCounter e milliSecondFromNano ()J g h
f i resetAccounting k \
f l
f `
getWriteLimit
setWriteLimit getReadLimit setReadLimit getCheckInterval setCheckInterval setMaxTimeWait getMaxTimeWait getMaxWriteDelay setMaxWriteDelay maxWriteDelay must be positive y getMaxWriteSize setMaxWriteSize doAccounting counter releaseReadSuspended +(Lio/netty/channel/ChannelHandlerContext;)V # $ ? &io/netty/channel/ChannelHandlerContext ? attr 7(Lio/netty/util/AttributeKey;)Lio/netty/util/Attribute; ? ? ? ? java/lang/Boolean ? valueOf (Z)Ljava/lang/Boolean; ? ?
? ? io/netty/util/Attribute ? set (Ljava/lang/Object;)V ? ? ? ? channel ()Lio/netty/channel/Channel; ? ? ? ? config "()Lio/netty/channel/ChannelConfig; ? ? ? io/netty/channel/ChannelConfig ? setAutoRead #(Z)Lio/netty/channel/ChannelConfig; ? ? ? ? ctx (Lio/netty/channel/ChannelHandlerContext; channelRead =(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V java/lang/Exception ?
calculateSize (Ljava/lang/Object;)J ? ?
? readTimeToWait (JJJJ)J ? ?
f ? checkWaitReadTime -(Lio/netty/channel/ChannelHandlerContext;JJ)J ? ?
? ? -io/netty/util/internal/logging/InternalLogger ? isDebugEnabled ()Z ? ? ? ? java/lang/StringBuilder ?
? = Read suspend: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (J)Ljava/lang/StringBuilder; ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ?
isAutoRead ? ? ? ? (Z)Ljava/lang/StringBuilder; ? ?
? ? isHandlerActive +(Lio/netty/channel/ChannelHandlerContext;)Z ? ?
? toString ()Ljava/lang/String; ? ?
? ? debug ? M ? ? java/lang/Object ? &