io.netty.handler.stream.ChunkedWriteHandler.class Maven / Gradle / Ivy
???? 2 +io/netty/handler/stream/ChunkedWriteHandler %io/netty/channel/ChannelDuplexHandler ChunkedWriteHandler.java 8io/netty/handler/stream/ChunkedWriteHandler$PendingWrite PendingWrite -io/netty/handler/stream/ChunkedWriteHandler$4 -io/netty/handler/stream/ChunkedWriteHandler$3 -io/netty/handler/stream/ChunkedWriteHandler$2
-io/netty/handler/stream/ChunkedWriteHandler$1 logger /Lio/netty/util/internal/logging/InternalLogger; queue Ljava/util/Queue; MLjava/util/Queue; ctx (Lio/netty/channel/ChannelHandlerContext; currentWrite :Lio/netty/handler/stream/ChunkedWriteHandler$PendingWrite; ()V
java/util/ArrayDeque
! this -Lio/netty/handler/stream/ChunkedWriteHandler; (I)V Ljava/lang/Deprecated; "java/lang/IllegalArgumentException ' java/lang/StringBuilder )
* maxPendingWrites: , append -(Ljava/lang/String;)Ljava/lang/StringBuilder; . /
* 0 (I)Ljava/lang/StringBuilder; . 2
* 3 (expected: > 0) 5 toString ()Ljava/lang/String; 7 8
* 9 (Ljava/lang/String;)V ;
( < maxPendingWrites I handlerAdded +(Lio/netty/channel/ChannelHandlerContext;)V java/lang/Exception B D resumeTransfer &io/netty/channel/ChannelHandlerContext G executor *()Lio/netty/util/concurrent/EventExecutor; I J H K &io/netty/util/concurrent/EventExecutor M inEventLoop ()Z O P N Q doFlush S A
T V -io/netty/util/internal/logging/InternalLogger X
isWarnEnabled Z P Y [ *Unexpected exception while sending chunks. ] warn *(Ljava/lang/String;Ljava/lang/Throwable;)V _ ` Y a X(Lio/netty/handler/stream/ChunkedWriteHandler;Lio/netty/channel/ChannelHandlerContext;)V c
d execute (Ljava/lang/Runnable;)V f g N h e Ljava/lang/Exception; write ^(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V 6(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)V n
o java/util/Queue q add (Ljava/lang/Object;)Z s t r u msg Ljava/lang/Object; promise !Lio/netty/channel/ChannelPromise; flush channelInactive fireChannelInactive *()Lio/netty/channel/ChannelHandlerContext; } ~ H channelWritabilityChanged channel ()Lio/netty/channel/Channel; ? ? H ? io/netty/channel/Channel ?
isWritable ? P ? ? fireChannelWritabilityChanged ? ~ H ? discard (Ljava/lang/Throwable;)V ? poll ()Ljava/lang/Object; ? ? r ? w x ? $io/netty/handler/stream/ChunkedInput ? isEndOfInput ? P ? ? (java/nio/channels/ClosedChannelException ?
? java/lang/Object ? fail ? ?
? length ()J ? ? ? ? success (J)V ? ?
?
closeInput )(Lio/netty/handler/stream/ChunkedInput;)V ? ?
? java/lang/Class ?
getSimpleName ? 8
? ? .isEndOfInput() failed ? in )Lio/netty/handler/stream/ChunkedInput<*>; &Lio/netty/handler/stream/ChunkedInput; message cause Ljava/lang/Throwable; java/lang/Throwable ? isActive ? P ? ? ? ?
? alloc $()Lio/netty/buffer/ByteBufAllocator; ? ? H ? io/netty/buffer/ByteBufAllocator ? readChunk 6(Lio/netty/buffer/ByteBufAllocator;)Ljava/lang/Object; ? ? ? ? io/netty/util/ReferenceCountUtil ? release ? t
? ? io/netty/buffer/Unpooled ? EMPTY_BUFFER Lio/netty/buffer/ByteBuf; ? ? ? ? 4(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture; l ? H ? ?(Lio/netty/handler/stream/ChunkedWriteHandler;Lio/netty/handler/stream/ChunkedWriteHandler$PendingWrite;Lio/netty/handler/stream/ChunkedInput;)V ?
? io/netty/channel/ChannelFuture ? addListener R(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture; ? ? ? ? ?(Lio/netty/handler/stream/ChunkedWriteHandler;Ljava/lang/Object;Lio/netty/handler/stream/ChunkedWriteHandler$PendingWrite;Lio/netty/handler/stream/ChunkedInput;)V ?
? ?(Lio/netty/handler/stream/ChunkedWriteHandler;Ljava/lang/Object;Lio/netty/handler/stream/ChunkedWriteHandler$PendingWrite;Lio/netty/handler/stream/ChunkedInput;Lio/netty/channel/Channel;)V ?
? { ~ H ? y z ? U(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; l ? H ? suspend Z
endOfInput t chunks f Lio/netty/channel/ChannelFuture; pendingMessage Lio/netty/channel/Channel;
requiresFlush allocator "Lio/netty/buffer/ByteBufAllocator; close ? ? Failed to close a chunked input.
access$000 x0 x1
access$100 1()Lio/netty/util/internal/logging/InternalLogger; 4io/netty/util/internal/logging/InternalLoggerFactory
getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
Signature Code LocalVariableTable LineNumberTable
StackMapTable
Deprecated RuntimeVisibleAnnotations
Exceptions LocalVariableTypeTable ,(Lio/netty/handler/stream/ChunkedInput<*>;)V
SourceFile InnerClasses ! B B *? *? Y? ? "? # $ M I N % ? 4*? *? Y? ? "? #? (Y? *Y? +-? 1? 46? 1? :? =?? 4 # $ 4 > ? T I U V 3 Y
? 3 &