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

com.groupbyinc.flux.common.jboss.netty.handler.traffic.AbstractTrafficShapingHandler.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????1?Tcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandlerCcom/groupbyinc/flux/common/jboss/netty/channel/SimpleChannelHandlerFcom/groupbyinc/flux/common/jboss/netty/util/ExternalResourceReleasable"AbstractTrafficShapingHandler.javahcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler$ReopenReadTimerTaskReopenReadTimerTaskncom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler$SimpleObjectSizeEstimatorSimpleObjectSizeEstimatordcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler$ReadWriteStatusReadWriteStatuslogger?Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger;DEFAULT_CHECK_INTERVALJ?DEFAULT_MAX_TIME:?DEFAULT_MAX_SIZE@MINIMAL_WAIT
.CHANNEL_DEFAULT_USER_DEFINED_WRITABILITY_INDEXI-GLOBAL_DEFAULT_USER_DEFINED_WRITABILITY_INDEX4GLOBALCHANNEL_DEFAULT_USER_DEFINED_WRITABILITY_INDEXtrafficCounterGLcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;objectSizeEstimatorALcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;timer3Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;timeout5Lcom/groupbyinc/flux/common/jboss/netty/util/Timeout;
writeLimit	readLimit
checkIntervalmaxTime
maxWriteDelaymaxWriteSizerelease+Ljava/util/concurrent/atomic/AtomicBoolean;indexuserDefinedWritabilityIndex()IYcom/groupbyinc/flux/common/jboss/netty/handler/traffic/GlobalChannelTrafficShapingHandler:Rcom/groupbyinc/flux/common/jboss/netty/handler/traffic/GlobalTrafficShapingHandler<thisVLcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler;init{(Lcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJJJ)V"java/lang/IllegalArgumentExceptionBmaxTime must be positiveD(Ljava/lang/String;)VFG
CH)*	J+,	L/	N0	P1	R2	TnewObjectSizeEstimatornewTimer
newWriteLimitnewReadLimitnewCheckInterval
newMaxTimesetTrafficCounterJ(Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;)V'(	^newTrafficCounter9(Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJJ)V()VFb
c?3	g4	i)java/util/concurrent/atomic/AtomicBooleank(Z)VFm
ln56	p89
r7!	t
c@A
wz(Lcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJJ)V8(Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJ)Vy(Lcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJ)V6(Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;)Vw(Lcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;)V7(Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;J)Vx(Lcom/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimator;Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;J)V:(Lcom/groupbyinc/flux/common/jboss/netty/util/Timer;JJJJ)V	configure(JJJ)V(JJ)V??
?(J)V??
?Ecom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter?milliSecondFromNano()J??
??resetAccounting??
??setCheckInterval??
?
getWriteLimit
setWriteLimitgetReadLimitsetReadLimitgetCheckInterval
??getMaxTimeWaitsetMaxTimeWaitgetMaxWriteDelaysetMaxWriteDelaymaxWriteDelay must be positive?getMaxWriteSizesetMaxWriteSizedoAccountingcounterreleaseReadSuspendedI(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;)VcheckAttachment?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;)Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler$ReadWriteStatus;??
?readSuspendZ??	?Dcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext?
getChannel:()Lcom/groupbyinc/flux/common/jboss/netty/channel/Channel;????6com/groupbyinc/flux/common/jboss/netty/channel/Channel?setReadableA(Z)Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelFuture;????ctxFLcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;rwsfLcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler$ReadWriteStatus;messageReceived?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;)Vjava/lang/Exception?;com/groupbyinc/flux/common/jboss/netty/channel/MessageEvent?
getMessage()Ljava/lang/Object;????
calculateSize(Ljava/lang/Object;)J??
?readTimeToWait(JJJJ)J??
??checkWaitReadTimeK(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;JJ)J??
?get()Z??
l?isConnected????	?=com/groupbyinc/flux/common/jboss/netty/logging/InternalLogger?isDebugEnabled????java/lang/StringBuilder?
?cRead suspend: ?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??(J)Ljava/lang/StringBuilder;??
??(C)Ljava/lang/StringBuilder;??
??
isReadable????(Z)Ljava/lang/StringBuilder;??
??toString()Ljava/lang/String;??
??debug?G??java/lang/Thread?sleep?
Suspend final status => reopenReadTimerTask7Lcom/groupbyinc/flux/common/jboss/netty/util/TimerTask;	?(Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/AbstractTrafficShapingHandler;Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;)VF

	java/util/concurrent/TimeUnit
MILLISECONDSLjava/util/concurrent/TimeUnit;	1com/groupbyinc/flux/common/jboss/netty/util/Timer
newTimeout?(Lcom/groupbyinc/flux/common/jboss/netty/util/TimerTask;JLjava/util/concurrent/TimeUnit;)Lcom/groupbyinc/flux/common/jboss/netty/util/Timeout;-.	informReadOperationJ(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;J)V
sendUpstream@(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelEvent;)V ?!channel8Lcom/groupbyinc/flux/common/jboss/netty/channel/Channel;waitsizeevt=Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;nowwriteRequestedwriteTimeToWait+?
?,Write suspend: .
isWritable0??1getUserDefinedWritability(I)Z34?5submitWrite?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;JJJ)V78
9internalSubmitWriteLjava/lang/Deprecated;sendDownstream= ?>?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/MessageEvent;J)VdelaysetWritableJ(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Z)VsetUserDefinedWritability(IZ)VDE?FwritablecheckWriteSuspendK(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;JJ)VBC
K	queueSizereleaseWriteSuspendedgetTrafficCounterI()Lcom/groupbyinc/flux/common/jboss/netty/handler/traffic/TrafficCounter;releaseExternalResourcesstopRb
?SsetUm
lV3com/groupbyinc/flux/common/jboss/netty/util/TimeoutXcancelZbY[
getAttachment]??^
c
setAttachment(Ljava/lang/Object;)Vab?cchannelConnected?(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelStateEvent;)Vef
geBLcom/groupbyinc/flux/common/jboss/netty/channel/ChannelStateEvent;?com/groupbyinc/flux/common/jboss/netty/util/ObjectSizeEstimatorkestimateSize(Ljava/lang/Object;)ImnloobjLjava/lang/Object;(I)VFs
?t!TrafficShaping with Write Limit: v
 Read Limit: x CheckInterval: z maxDelay: |
 maxSize: ~ and Counter: ?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??none?builderLjava/lang/StringBuilder;Dcom/groupbyinc/flux/common/jboss/netty/logging/InternalLoggerFactory?getInstanceR(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger;??
??
ConstantValueCodeLocalVariableTableLineNumberTable
Exceptions
DeprecatedRuntimeVisibleAnnotations
SourceFileInnerClasses!???? !?"#!?$%!?&'()*+,@-.B/B0D1D2@3@4567!/89?N*?;??*?=????>????	???@A??3		??
?CYE?I?*+?K*,?M*!?O*?Q*?S*	?U??H3>?3V*3W,3X3Y3Z3[	?&	????? ?&?,?2?\]?>*+?_??>?`(?
??Fa??I*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*?Y?v+ ?x??4I>?I+,I/I0I1?&	?{??? ?,?4?H?Fy??	C*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*+,!?x??>C>?C)*C+,C/C0C1?&	?{??? ?,?4BFz??J*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*?Y?v+ ?x??*J>?J+,J/J0?&	{??? ?,4IF{??D*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*+,!?x??4D>?D)*D+,D/D0?&	'{??? ?,(4)C+F|??I*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*?Y?v+		?x??I>?I+,?&	5{??? ?,647H9F}??C*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*+,		?x?? C>?C)*C+,?&	G{??? ?,H4IBKF~??G*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*?Y?v+		 ?x?? G>?G+,G1?&	W{??? ?,X4YFZF??A*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*+,		!?x??*A>?A)*A+,A1?&	k{??? ?,l4m@nF???
H*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*?Y?v+ ?x??>H>?H+,H/H0H1H2?&	?{??? ?,?4?G?FA??B*?d*?S*?U*e?h*?j*?lY?o?q**?s?u*+,!	?x??HB>?B)*B+,B/B0B1B2	?&	?{??? ?,?4?A????]
*!??*????*
>?
X
Y
Z???????j*?O*!?Q*?_?
*?_?????? >?XY???
??????>*????>?Z?
?????/*?O??>??????W*?O*?_?
*?_??????>?/????????/*?Q??>??????W*?Q*?_?
*?_??????>?0????????/*?S??>?????X*?S*?_?*?_*?S????>?Z?
???/*?U??>?????V	??
?CYE?I?*?U??>?2?$%'(???/*?h??>??.???V	??
?CY??I?*?h??>?3?<=?@???/*?j??>??F???>*?j??>?4?
UV?]?5??>??(?a???b+??M,??+????W?? >????????
?????k	
k??B+??:*,????7	??1*?_?**?_*?Q*?U!??7*+!??7??*?q?ؙ??+??:

??
???޲ݹ??;?ݻ?Y??????:??
????:??????????*?M?????
???????y??
??W?ݹ??2?ݻ?Y????
????:???????????	??	Y*+??	**?M?	?????:??:*+!?+,?"??XQY?Q?NQQVQ?Ra?#$
8%
A??5&k>?k??k'(g)?v??
??$?8?B?K?U?Y?a?p?{??????????????????&?4?K?N?Q?a?j??????J ??*>???%)?????? >???)??*??b	?	B*,????7??7+??:		??{*?_?t*?_*?O*?U?-B?ݹ??A?ݻ?Y??/??!??:??	?2??:??	*?u?6??????!??
*?q?ؙ	B??:
?
?:*+,!?:????????H?>?????'(?%?&?)?#$	?:?????)?=?H???????????????;??J+,???? >???'(?
????<7@?a	*+,*,????!???:??*>???'(A?
????<78??BC?p+??N-???-*?u?G??*>???H?#$?
IJ?j*?j?? *?h??	*+?L??*>???AM?N???*+?L??>????
#$OP?/*?_??>??+Qb?e'*?_?
*?_?T*?q?W*??*??\??'>??/0234&7???c*?_?L+??Y?`L*+?d+????
???:
;<=?ef?\+??W*+?L*+,?h?? >???ij?DEFG?????@*?K+?p???>?qr?K????r??Y"?uw??*?O??y??*?Q??{??*?S??}??*?h????*?j?????L*?_?+*?_??W?+???W+????r>?R ???PRWYXeZm\?b?!	???ݱ?=??	

	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy