final class io.reactivex.processors.BehaviorProcessor$BehaviorSubscription<T> extends java.util.concurrent.atomic.AtomicLong implements org.reactivestreams.Subscription, io.reactivex.internal.util.AppendOnlyLinkedArrayList$NonThrowingPredicate<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
super_class: java.util.concurrent.atomic.AtomicLong
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3293175281126227086
final org.reactivestreams.Subscriber<? super T> downstream;
descriptor: Lorg/reactivestreams/Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Lorg/reactivestreams/Subscriber<-TT;>;
final io.reactivex.processors.BehaviorProcessor<T> state;
descriptor: Lio/reactivex/processors/BehaviorProcessor;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/processors/BehaviorProcessor<TT;>;
boolean next;
descriptor: Z
flags: (0x0000)
boolean emitting;
descriptor: Z
flags: (0x0000)
io.reactivex.internal.util.AppendOnlyLinkedArrayList<java.lang.Object> queue;
descriptor: Lio/reactivex/internal/util/AppendOnlyLinkedArrayList;
flags: (0x0000)
Signature: Lio/reactivex/internal/util/AppendOnlyLinkedArrayList<Ljava/lang/Object;>;
boolean fastPath;
descriptor: Z
flags: (0x0000)
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
long index;
descriptor: J
flags: (0x0000)
void <init>(org.reactivestreams.Subscriber<? super T>, io.reactivex.processors.BehaviorProcessor<T>);
descriptor: (Lorg/reactivestreams/Subscriber;Lio/reactivex/processors/BehaviorProcessor;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
1: aload 0
aload 1
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.downstream:Lorg/reactivestreams/Subscriber;
2: aload 0
aload 2
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.state:Lio/reactivex/processors/BehaviorProcessor;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
0 4 1 actual Lorg/reactivestreams/Subscriber<-TT;>;
0 4 2 state Lio/reactivex/processors/BehaviorProcessor<TT;>;
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;Lio/reactivex/processors/BehaviorProcessor<TT;>;)V
MethodParameters:
Name Flags
actual
state
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 2
1: aload 0
lload 1
invokestatic io.reactivex.internal.util.BackpressureHelper.add:(Ljava/util/concurrent/atomic/AtomicLong;J)J
pop2
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
0 3 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
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifne 3
1: aload 0
iconst_1
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
2: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.state:Lio/reactivex/processors/BehaviorProcessor;
aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor.remove:(Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
void emitFirst();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
3: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 6
4: aload 2
monitorexit
5: return
6: StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription top io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.next:Z
ifeq 9
7: aload 2
monitorexit
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.state:Lio/reactivex/processors/BehaviorProcessor;
astore 3
start local 3 10: aload 3
getfield io.reactivex.processors.BehaviorProcessor.readLock:Ljava/util/concurrent/locks/Lock;
astore 4
start local 4 11: aload 4
invokeinterface java.util.concurrent.locks.Lock.lock:()V
12: aload 0
aload 3
getfield io.reactivex.processors.BehaviorProcessor.index:J
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.index:J
13: aload 3
getfield io.reactivex.processors.BehaviorProcessor.value:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
astore 1
start local 1 14: aload 4
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
15: aload 0
aload 1
ifnull 16
iconst_1
goto 17
StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription java.lang.Object io.reactivex.processors.BehaviorProcessor$BehaviorSubscription io.reactivex.processors.BehaviorProcessor java.util.concurrent.locks.Lock
StackMap stack: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
16: iconst_0
StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription java.lang.Object io.reactivex.processors.BehaviorProcessor$BehaviorSubscription io.reactivex.processors.BehaviorProcessor java.util.concurrent.locks.Lock
StackMap stack: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription int
17: putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.emitting:Z
18: aload 0
iconst_1
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.next:Z
end local 4 end local 3 19: aload 2
monitorexit
20: goto 23
end local 1 StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription top io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
StackMap stack: java.lang.Throwable
21: aload 2
monitorexit
22: athrow
start local 1 23: StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription java.lang.Object
StackMap stack:
aload 1
ifnull 27
24: aload 0
aload 1
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.test:(Ljava/lang/Object;)Z
ifeq 26
25: return
26: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.emitLoop:()V
27: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
14 21 1 o Ljava/lang/Object;
23 28 1 o Ljava/lang/Object;
10 19 3 s Lio/reactivex/processors/BehaviorProcessor<TT;>;
11 19 4 readLock Ljava/util/concurrent/locks/Lock;
Exception table:
from to target type
3 5 21 any
6 8 21 any
9 20 21 any
21 22 21 any
void emitNext(java.lang.Object, long);
descriptor: (Ljava/lang/Object;J)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.fastPath:Z
ifne 24
3: aload 0
dup
astore 4
monitorenter
4: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 7
5: aload 4
monitorexit
6: return
7: StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.index:J
lload 2
lcmp
ifne 10
8: aload 4
monitorexit
9: return
10: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.emitting:Z
ifeq 18
11: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.queue:Lio/reactivex/internal/util/AppendOnlyLinkedArrayList;
astore 5
start local 5 12: aload 5
ifnonnull 15
13: new io.reactivex.internal.util.AppendOnlyLinkedArrayList
dup
iconst_4
invokespecial io.reactivex.internal.util.AppendOnlyLinkedArrayList.<init>:(I)V
astore 5
14: aload 0
aload 5
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.queue:Lio/reactivex/internal/util/AppendOnlyLinkedArrayList;
15: StackMap locals: io.reactivex.internal.util.AppendOnlyLinkedArrayList
StackMap stack:
aload 5
aload 1
invokevirtual io.reactivex.internal.util.AppendOnlyLinkedArrayList.add:(Ljava/lang/Object;)V
16: aload 4
monitorexit
17: return
end local 5 18: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.next:Z
19: aload 4
monitorexit
20: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
21: aload 4
monitorexit
22: athrow
23: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.fastPath:Z
24: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.test:(Ljava/lang/Object;)Z
pop
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
0 26 1 value Ljava/lang/Object;
0 26 2 stateIndex J
12 18 5 q Lio/reactivex/internal/util/AppendOnlyLinkedArrayList<Ljava/lang/Object;>;
Exception table:
from to target type
4 6 21 any
7 9 21 any
10 17 21 any
18 20 21 any
21 22 21 any
MethodParameters:
Name Flags
value
stateIndex
public boolean test(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic io.reactivex.internal.util.NotificationLite.isComplete:(Ljava/lang/Object;)Z
ifeq 5
3: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.downstream:Lorg/reactivestreams/Subscriber;
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic io.reactivex.internal.util.NotificationLite.isError:(Ljava/lang/Object;)Z
ifeq 8
6: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.downstream:Lorg/reactivestreams/Subscriber;
aload 1
invokestatic io.reactivex.internal.util.NotificationLite.getError:(Ljava/lang/Object;)Ljava/lang/Throwable;
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.get:()J
lstore 2
start local 2 9: lload 2
lconst_0
lcmp
ifeq 14
10: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.downstream:Lorg/reactivestreams/Subscriber;
aload 1
invokestatic io.reactivex.internal.util.NotificationLite.getValue:(Ljava/lang/Object;)Ljava/lang/Object;
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
11: lload 2
ldc 9223372036854775807
lcmp
ifeq 13
12: aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.decrementAndGet:()J
pop2
13: StackMap locals: long
StackMap stack:
iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancel:()V
15: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.downstream:Lorg/reactivestreams/Subscriber;
new io.reactivex.exceptions.MissingBackpressureException
dup
ldc "Could not deliver value due to lack of requests"
invokespecial io.reactivex.exceptions.MissingBackpressureException.<init>:(Ljava/lang/String;)V
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
16: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
0 17 1 o Ljava/lang/Object;
9 17 2 r J
MethodParameters:
Name Flags
o
void emitLoop();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.cancelled:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
3: aload 0
getfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.queue:Lio/reactivex/internal/util/AppendOnlyLinkedArrayList;
astore 1
start local 1 4: aload 1
ifnonnull 8
5: aload 0
iconst_0
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.emitting:Z
6: aload 2
monitorexit
7: return
8: StackMap locals: io.reactivex.internal.util.AppendOnlyLinkedArrayList io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
StackMap stack:
aload 0
aconst_null
putfield io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.queue:Lio/reactivex/internal/util/AppendOnlyLinkedArrayList;
9: aload 2
monitorexit
10: goto 13
end local 1 StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription top io.reactivex.processors.BehaviorProcessor$BehaviorSubscription
StackMap stack: java.lang.Throwable
11: aload 2
monitorexit
12: athrow
start local 1 13: StackMap locals: io.reactivex.processors.BehaviorProcessor$BehaviorSubscription io.reactivex.internal.util.AppendOnlyLinkedArrayList
StackMap stack:
aload 1
aload 0
invokevirtual io.reactivex.internal.util.AppendOnlyLinkedArrayList.forEachWhile:(Lio/reactivex/internal/util/AppendOnlyLinkedArrayList$NonThrowingPredicate;)V
end local 1 14: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
4 11 1 q Lio/reactivex/internal/util/AppendOnlyLinkedArrayList<Ljava/lang/Object;>;
13 14 1 q Lio/reactivex/internal/util/AppendOnlyLinkedArrayList<Ljava/lang/Object;>;
Exception table:
from to target type
3 7 11 any
8 10 11 any
11 12 11 any
public boolean isFull();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.processors.BehaviorProcessor$BehaviorSubscription.get:()J
lconst_0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/atomic/AtomicLong;Lorg/reactivestreams/Subscription;Lio/reactivex/internal/util/AppendOnlyLinkedArrayList$NonThrowingPredicate<Ljava/lang/Object;>;
SourceFile: "BehaviorProcessor.java"
NestHost: io.reactivex.processors.BehaviorProcessor
InnerClasses:
public abstract NonThrowingPredicate = io.reactivex.internal.util.AppendOnlyLinkedArrayList$NonThrowingPredicate of io.reactivex.internal.util.AppendOnlyLinkedArrayList
final BehaviorSubscription = io.reactivex.processors.BehaviorProcessor$BehaviorSubscription of io.reactivex.processors.BehaviorProcessor