io.netty.channel.CoalescingBufferQueue.class Maven / Gradle / Ivy
???? 2 ? &io/netty/channel/CoalescingBufferQueue java/lang/Object CoalescingBufferQueue.java channel Lio/netty/channel/Channel; bufAndListenerPairs Ljava/util/ArrayDeque; *Ljava/util/ArrayDeque;
readableBytes I $assertionsDisabled Z (Lio/netty/channel/Channel;)V (Lio/netty/channel/Channel;I)V
this (Lio/netty/channel/CoalescingBufferQueue; ()V
!io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
io/netty/channel/Channel " java/util/ArrayDeque $ (I)V &
% ' ) initSize add (Lio/netty/buffer/ByteBuf;)V &io/netty/channel/ChannelFutureListener . D(Lio/netty/buffer/ByteBuf;Lio/netty/channel/ChannelFutureListener;)V , 0
1 buf Lio/netty/buffer/ByteBuf; =(Lio/netty/buffer/ByteBuf;Lio/netty/channel/ChannelPromise;)V promise 6 io/netty/channel/ChannelPromise 8 isVoid ()Z : ; 9 < io/netty/buffer/ByteBuf > 'io/netty/channel/ChannelPromiseNotifier @ %([Lio/netty/channel/ChannelPromise;)V B
A C !Lio/netty/channel/ChannelPromise; 3 G??? ()I J
? K java/lang/IllegalStateException M java/lang/StringBuilder O
P buffer queue length overflow: R append -(Ljava/lang/String;)Ljava/lang/StringBuilder; T U
P V (I)Ljava/lang/StringBuilder; T X
P Y + [ toString ()Ljava/lang/String; ] ^
P _ (Ljava/lang/String;)V a
N b (Ljava/lang/Object;)Z , d
% e listener (Lio/netty/channel/ChannelFutureListener; remove =(ILio/netty/channel/ChannelPromise;)Lio/netty/buffer/ByteBuf; "java/lang/IllegalArgumentException k bytes (expected >= 0): m
l b aggregatePromise p isEmpty r ;
% s io/netty/buffer/Unpooled u EMPTY_BUFFER w 4 v x java/lang/Math z min (II)I | }
{ ~ poll ()Ljava/lang/Object; ? ?
% ? addListener S(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelPromise; ? ? 9 ? addFirst (Ljava/lang/Object;)V ? ?
% ? readRetainedSlice (I)Lio/netty/buffer/ByteBuf; ? ?
? ? compose M(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ? ?
?
? java/lang/AssertionError ?
? entry Ljava/lang/Object; entryBuffer bytes toReturn
originalBytes io/netty/buffer/CompositeByteBuf ? addComponent >(ZLio/netty/buffer/ByteBuf;)Lio/netty/buffer/CompositeByteBuf; ? ?
? ? alloc $()Lio/netty/buffer/ByteBufAllocator; ? ? ! ? size ? J
% ? io/netty/buffer/ByteBufAllocator ? compositeBuffer %(I)Lio/netty/buffer/CompositeByteBuf; ? ? ? ? composite "Lio/netty/buffer/CompositeByteBuf; current next releaseAndFailAll (Ljava/lang/Throwable;)V newFailedFuture 7(Ljava/lang/Throwable;)Lio/netty/channel/ChannelFuture; ? ? ! ? releaseAndCompleteAll #(Lio/netty/channel/ChannelFuture;)V ? ?
? cause Ljava/lang/Throwable; java/lang/Throwable ? io/netty/util/ReferenceCountUtil ? safeRelease ? ?
? ? operationComplete $(Lio/netty/util/concurrent/Future;)V ? ? / ? ?
N ? t future Lio/netty/channel/ChannelFuture; pending copyTo +(Lio/netty/channel/CoalescingBufferQueue;)V addAll (Ljava/util/Collection;)Z ? ?
% ? dest java/lang/Class ? desiredAssertionStatus ? ;
? ? Signature Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile 1 ?
? ? *+? ? ? ?
, - ? h *? *+? ? !? #*? %Y? (? *? ? + ? / 0 1 2 , - ? B
*+? /? 2? ?
3 4 ?
8 9 , 5 ? ? ),7? W*+,? = ? ? ? AY? 9Y,S? D? 2? ? ) ) 3 4 ) 6 E ? D E ( F ? 1 ? ? 9 ?? ? 9 ? A , 0 ? ? c+F? W*? HI+? Ld? -? NY? PY? QS? W*? H? Z\? W+? L? Z? `? c?*? *+? fW,? *? *,? fW*Y? H+? L`? H? ? c c 3 4 c g h ? &