io.netty.handler.timeout.WriteTimeoutHandler.class Maven / Gradle / Ivy
???? 2 ? ,io/netty/handler/timeout/WriteTimeoutHandler .io/netty/channel/ChannelOutboundHandlerAdapter WriteTimeoutHandler.java =io/netty/handler/timeout/WriteTimeoutHandler$WriteTimeoutTask WriteTimeoutTask MIN_TIMEOUT_NANOS J timeoutNanos lastTask ?Lio/netty/handler/timeout/WriteTimeoutHandler$WriteTimeoutTask; closed Z $assertionsDisabled (I)V java/util/concurrent/TimeUnit SECONDS Ljava/util/concurrent/TimeUnit; #(JLjava/util/concurrent/TimeUnit;)V
this .Lio/netty/handler/timeout/WriteTimeoutHandler; timeoutSeconds I ()V
! java/lang/NullPointerException # unit % (Ljava/lang/String;)V '
$ (
* toNanos (J)J , -
.
0 java/lang/Math 2 max (JJ)J 4 5
3 6 timeout write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V java/lang/Exception ; io/netty/channel/ChannelPromise = unvoid #()Lio/netty/channel/ChannelPromise; ? @ > A scheduleTimeout L(Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V C D
E &io/netty/channel/ChannelHandlerContext G U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; 9 I H J ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/Object; promise !Lio/netty/channel/ChannelPromise; handlerRemoved +(Lio/netty/channel/ChannelHandlerContext;)V
T scheduledFuture &Ljava/util/concurrent/ScheduledFuture; V W X $java/util/concurrent/ScheduledFuture Z cancel (Z)Z \ ] [ ^ prev `
a next c
d task z(Lio/netty/handler/timeout/WriteTimeoutHandler;Lio/netty/channel/ChannelHandlerContext;Lio/netty/channel/ChannelPromise;)V g
h executor *()Lio/netty/util/concurrent/EventExecutor; j k H l NANOSECONDS n o &io/netty/util/concurrent/EventExecutor q schedule `(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture; s t r u isDone ()Z w x [ y addWriteTimeoutTask B(Lio/netty/handler/timeout/WriteTimeoutHandler$WriteTimeoutTask;)V { |
} addListener S(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelPromise; ? > ? removeWriteTimeoutTask ? java/lang/AssertionError ?
? !
writeTimedOut ? .io/netty/handler/timeout/WriteTimeoutException ? INSTANCE 0Lio/netty/handler/timeout/WriteTimeoutException; ? ? ? ? fireExceptionCaught ?(Ljava/lang/Throwable;)Lio/netty/channel/ChannelHandlerContext; ? ? H ? close "()Lio/netty/channel/ChannelFuture; ? ? H ?
access$000 p(Lio/netty/handler/timeout/WriteTimeoutHandler;Lio/netty/handler/timeout/WriteTimeoutHandler$WriteTimeoutTask;)V ? |
? x0 x1 java/lang/Class ? desiredAssertionStatus ? x
? ? MILLISECONDS ? ? Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses !
? B
*?? ? ? ?
?
T U ? ? 0*? "-?
? $Y&? )? ?? * ? +? *-? /? 1? 7? +? ? 0 0 8
0 % ? _ ` a d e g / i ? ?
9 : ? ? *? + ?? -? B N*+-? F+,-? K W? ? * L M N O P Q ? m n o q r ? ? <