final class io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber<T> extends java.util.ArrayDeque<T> implements io.reactivex.FlowableSubscriber<T>, org.reactivestreams.Subscription
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber
super_class: java.util.ArrayDeque
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7240042530241604978
final org.reactivestreams.Subscriber<? super T> downstream;
descriptor: Lorg/reactivestreams/Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Lorg/reactivestreams/Subscriber<-TT;>;
final int count;
descriptor: I
flags: (0x0010) ACC_FINAL
org.reactivestreams.Subscription upstream;
descriptor: Lorg/reactivestreams/Subscription;
flags: (0x0000)
volatile boolean done;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
final java.util.concurrent.atomic.AtomicLong requested;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.atomic.AtomicInteger wip;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0010) ACC_FINAL
void <init>(org.reactivestreams.Subscriber<? super T>, );
descriptor: (Lorg/reactivestreams/Subscriber;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.ArrayDeque.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.requested:Ljava/util/concurrent/atomic/AtomicLong;
2: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.wip:Ljava/util/concurrent/atomic/AtomicInteger;
3: aload 0
aload 1
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.downstream:Lorg/reactivestreams/Subscriber;
4: aload 0
iload 2
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.count:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
0 6 1 actual Lorg/reactivestreams/Subscriber<-TT;>;
0 6 2 count I
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;I)V
MethodParameters:
Name Flags
actual
count
public void onSubscribe(org.reactivestreams.Subscription);
descriptor: (Lorg/reactivestreams/Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.upstream:Lorg/reactivestreams/Subscription;
aload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.validate:(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
ifeq 4
1: aload 0
aload 1
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.upstream:Lorg/reactivestreams/Subscription;
2: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.downstream:Lorg/reactivestreams/Subscriber;
aload 0
invokeinterface org.reactivestreams.Subscriber.onSubscribe:(Lorg/reactivestreams/Subscription;)V
3: aload 1
ldc 9223372036854775807
invokeinterface org.reactivestreams.Subscription.request:(J)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
0 5 1 s Lorg/reactivestreams/Subscription;
MethodParameters:
Name Flags
s
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.count:I
aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.size:()I
if_icmpne 2
1: aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.poll:()Ljava/lang/Object;
pop
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.offer:(Ljava/lang/Object;)Z
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
0 4 1 t TT;
Signature: (TT;)V
MethodParameters:
Name Flags
t
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.downstream:Lorg/reactivestreams/Subscriber;
aload 1
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
0 2 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.done:Z
1: aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.drain:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: lload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.validate:(J)Z
ifeq 3
1: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.requested:Ljava/util/concurrent/atomic/AtomicLong;
lload 1
invokestatic io.reactivex.internal.util.BackpressureHelper.add:(Ljava/util/concurrent/atomic/AtomicLong;J)J
pop2
2: aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.drain:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
0 4 1 n J
MethodParameters:
Name Flags
n
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.cancelled:Z
1: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.upstream:Lorg/reactivestreams/Subscription;
invokeinterface org.reactivestreams.Subscription.cancel:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
void drain();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.wip:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
ifne 20
1: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.downstream:Lorg/reactivestreams/Subscriber;
astore 1
start local 1 2: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.requested:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 2
start local 2 3: StackMap locals: org.reactivestreams.Subscriber long
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.cancelled:Z
ifeq 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.done:Z
ifeq 19
6: lconst_0
lstore 4
start local 4 7: goto 16
8: StackMap locals: long
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.cancelled:Z
ifeq 10
9: return
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.poll:()Ljava/lang/Object;
astore 6
start local 6 11: aload 6
ifnonnull 14
12: aload 1
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
13: return
14: StackMap locals: java.lang.Object
StackMap stack:
aload 1
aload 6
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
15: lload 4
lconst_1
ladd
lstore 4
end local 6 16: StackMap locals:
StackMap stack:
lload 4
lload 2
lcmp
ifne 8
17: lload 4
lconst_0
lcmp
ifeq 19
lload 2
ldc 9223372036854775807
lcmp
ifeq 19
18: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.requested:Ljava/util/concurrent/atomic/AtomicLong;
lload 4
lneg
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
lstore 2
end local 4 19: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber.wip:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
ifne 3
end local 2 end local 1 20: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/reactivex/internal/operators/flowable/FlowableTakeLast$TakeLastSubscriber<TT;>;
2 20 1 a Lorg/reactivestreams/Subscriber<-TT;>;
3 20 2 r J
7 19 4 e J
11 16 6 v TT;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/ArrayDeque<TT;>;Lio/reactivex/FlowableSubscriber<TT;>;Lorg/reactivestreams/Subscription;
SourceFile: "FlowableTakeLast.java"
NestHost: io.reactivex.internal.operators.flowable.FlowableTakeLast
InnerClasses:
final TakeLastSubscriber = io.reactivex.internal.operators.flowable.FlowableTakeLast$TakeLastSubscriber of io.reactivex.internal.operators.flowable.FlowableTakeLast