public final class io.reactivex.processors.UnicastProcessor<T> extends io.reactivex.processors.FlowableProcessor<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.processors.UnicastProcessor
super_class: io.reactivex.processors.FlowableProcessor
{
final io.reactivex.internal.queue.SpscLinkedArrayQueue<T> queue;
descriptor: Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;
final java.util.concurrent.atomic.AtomicReference<java.lang.Runnable> onTerminate;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/Runnable;>;
final boolean delayError;
descriptor: Z
flags: (0x0010) ACC_FINAL
volatile boolean done;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0000)
final java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscriber<? super T>> downstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscriber<-TT;>;>;
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
final java.util.concurrent.atomic.AtomicBoolean once;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0010) ACC_FINAL
final io.reactivex.internal.subscriptions.BasicIntQueueSubscription<T> wip;
descriptor: Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription<TT;>;
final java.util.concurrent.atomic.AtomicLong requested;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x0010) ACC_FINAL
boolean enableOperatorFusion;
descriptor: Z
flags: (0x0000)
public static <T> io.reactivex.processors.UnicastProcessor<T> create();
descriptor: ()Lio/reactivex/processors/UnicastProcessor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new io.reactivex.processors.UnicastProcessor
dup
invokestatic io.reactivex.processors.UnicastProcessor.bufferSize:()I
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(I)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
public static <T> io.reactivex.processors.UnicastProcessor<T> create(int);
descriptor: (I)Lio/reactivex/processors/UnicastProcessor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.reactivex.processors.UnicastProcessor
dup
iload 0
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 capacityHint I
Signature: <T:Ljava/lang/Object;>(I)Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
capacityHint
public static <T> io.reactivex.processors.UnicastProcessor<T> create(boolean);
descriptor: (Z)Lio/reactivex/processors/UnicastProcessor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new io.reactivex.processors.UnicastProcessor
dup
invokestatic io.reactivex.processors.UnicastProcessor.bufferSize:()I
aconst_null
iload 0
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(ILjava/lang/Runnable;Z)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 delayError Z
Signature: <T:Ljava/lang/Object;>(Z)Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
delayError
public static <T> io.reactivex.processors.UnicastProcessor<T> create(int, java.lang.Runnable);
descriptor: (ILjava/lang/Runnable;)Lio/reactivex/processors/UnicastProcessor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "onTerminate"
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new io.reactivex.processors.UnicastProcessor
dup
iload 0
aload 1
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(ILjava/lang/Runnable;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 capacityHint I
0 2 1 onCancelled Ljava/lang/Runnable;
Signature: <T:Ljava/lang/Object;>(ILjava/lang/Runnable;)Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
capacityHint
onCancelled
public static <T> io.reactivex.processors.UnicastProcessor<T> create(int, java.lang.Runnable, boolean);
descriptor: (ILjava/lang/Runnable;Z)Lio/reactivex/processors/UnicastProcessor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "onTerminate"
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: new io.reactivex.processors.UnicastProcessor
dup
iload 0
aload 1
iload 2
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(ILjava/lang/Runnable;Z)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 capacityHint I
0 2 1 onCancelled Ljava/lang/Runnable;
0 2 2 delayError Z
Signature: <T:Ljava/lang/Object;>(ILjava/lang/Runnable;Z)Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeVisibleAnnotations:
io.reactivex.annotations.CheckReturnValue()
RuntimeInvisibleAnnotations:
io.reactivex.annotations.NonNull()
MethodParameters:
Name Flags
capacityHint
onCancelled
delayError
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aconst_null
iconst_1
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(ILjava/lang/Runnable;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 2 1 capacityHint I
MethodParameters:
Name Flags
capacityHint
void <init>(int, java.lang.Runnable);
descriptor: (ILjava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
iconst_1
invokespecial io.reactivex.processors.UnicastProcessor.<init>:(ILjava/lang/Runnable;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 2 1 capacityHint I
0 2 2 onTerminate Ljava/lang/Runnable;
MethodParameters:
Name Flags
capacityHint
onTerminate
void <init>(int, java.lang.Runnable, boolean);
descriptor: (ILjava/lang/Runnable;Z)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial io.reactivex.processors.FlowableProcessor.<init>:()V
1: aload 0
new io.reactivex.internal.queue.SpscLinkedArrayQueue
dup
iload 1
ldc "capacityHint"
invokestatic io.reactivex.internal.functions.ObjectHelper.verifyPositive:(ILjava/lang/String;)I
invokespecial io.reactivex.internal.queue.SpscLinkedArrayQueue.<init>:(I)V
putfield io.reactivex.processors.UnicastProcessor.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
2: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
aload 2
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:(Ljava/lang/Object;)V
putfield io.reactivex.processors.UnicastProcessor.onTerminate:Ljava/util/concurrent/atomic/AtomicReference;
3: aload 0
iload 3
putfield io.reactivex.processors.UnicastProcessor.delayError:Z
4: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
5: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield io.reactivex.processors.UnicastProcessor.once:Ljava/util/concurrent/atomic/AtomicBoolean;
6: aload 0
new io.reactivex.processors.UnicastProcessor$UnicastQueueSubscription
dup
aload 0
invokespecial io.reactivex.processors.UnicastProcessor$UnicastQueueSubscription.<init>:(Lio/reactivex/processors/UnicastProcessor;)V
putfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
7: aload 0
new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putfield io.reactivex.processors.UnicastProcessor.requested:Ljava/util/concurrent/atomic/AtomicLong;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 9 1 capacityHint I
0 9 2 onTerminate Ljava/lang/Runnable;
0 9 3 delayError Z
MethodParameters:
Name Flags
capacityHint
onTerminate
delayError
void doTerminate();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.onTerminate:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Runnable
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface java.lang.Runnable.run:()V
3: StackMap locals: java.lang.Runnable
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
1 4 1 r Ljava/lang/Runnable;
void drainRegular(org.reactivestreams.Subscriber<? super T>);
descriptor: (Lorg/reactivestreams/Subscriber;)V
flags: (0x0000)
Code:
stack=6, locals=12, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: aload 0
getfield io.reactivex.processors.UnicastProcessor.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
astore 3
start local 3 2: aload 0
getfield io.reactivex.processors.UnicastProcessor.delayError:Z
ifeq 3
iconst_0
goto 4
StackMap locals: int io.reactivex.internal.queue.SpscLinkedArrayQueue
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: StackMap locals: int
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.requested:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
lstore 5
start local 5 6: lconst_0
lstore 7
start local 7 7: goto 19
8: StackMap locals: long long
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
istore 9
start local 9 9: aload 3
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.poll:()Ljava/lang/Object;
astore 10
start local 10 10: aload 10
ifnonnull 11
iconst_1
goto 12
StackMap locals: int java.lang.Object
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: istore 11
start local 11 13: aload 0
iload 4
iload 9
iload 11
aload 1
aload 3
invokevirtual io.reactivex.processors.UnicastProcessor.checkTerminated:(ZZZLorg/reactivestreams/Subscriber;Lio/reactivex/internal/queue/SpscLinkedArrayQueue;)Z
ifeq 15
14: return
15: StackMap locals: int
StackMap stack:
iload 11
ifeq 17
16: goto 20
17: StackMap locals:
StackMap stack:
aload 1
aload 10
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
18: lload 7
lconst_1
ladd
lstore 7
end local 11 end local 10 end local 9 19: StackMap locals:
StackMap stack:
lload 5
lload 7
lcmp
ifne 8
20: StackMap locals:
StackMap stack:
lload 5
lload 7
lcmp
ifne 22
aload 0
iload 4
aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
aload 3
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.isEmpty:()Z
aload 1
aload 3
invokevirtual io.reactivex.processors.UnicastProcessor.checkTerminated:(ZZZLorg/reactivestreams/Subscriber;Lio/reactivex/internal/queue/SpscLinkedArrayQueue;)Z
ifeq 22
21: return
22: StackMap locals:
StackMap stack:
lload 7
lconst_0
lcmp
ifeq 24
lload 5
ldc 9223372036854775807
lcmp
ifeq 24
23: aload 0
getfield io.reactivex.processors.UnicastProcessor.requested:Ljava/util/concurrent/atomic/AtomicLong;
lload 7
lneg
invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
pop2
24: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
iload 2
ineg
invokevirtual io.reactivex.internal.subscriptions.BasicIntQueueSubscription.addAndGet:(I)I
istore 2
25: iload 2
ifne 5
end local 7 end local 5 26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 27 1 a Lorg/reactivestreams/Subscriber<-TT;>;
1 27 2 missed I
2 27 3 q Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;
5 27 4 failFast Z
6 26 5 r J
7 26 7 e J
9 19 9 d Z
10 19 10 t TT;
13 19 11 empty Z
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;)V
MethodParameters:
Name Flags
a
void drainFused(org.reactivestreams.Subscriber<? super T>);
descriptor: (Lorg/reactivestreams/Subscriber;)V
flags: (0x0000)
Code:
stack=2, locals=7, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: aload 0
getfield io.reactivex.processors.UnicastProcessor.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
astore 3
start local 3 2: aload 0
getfield io.reactivex.processors.UnicastProcessor.delayError:Z
ifeq 3
iconst_0
goto 4
StackMap locals: int io.reactivex.internal.queue.SpscLinkedArrayQueue
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: StackMap locals: int
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 9
6: aload 3
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.clear:()V
7: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
istore 5
start local 5 10: iload 4
ifeq 15
iload 5
ifeq 15
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
ifnull 15
11: aload 3
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.clear:()V
12: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
13: aload 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
14: return
15: StackMap locals: int
StackMap stack:
aload 1
aconst_null
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
16: iload 5
ifeq 24
17: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
18: aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
astore 6
start local 6 19: aload 6
ifnull 22
20: aload 1
aload 6
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
21: goto 23
22: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
23: StackMap locals:
StackMap stack:
return
end local 6 24: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
iload 2
ineg
invokevirtual io.reactivex.internal.subscriptions.BasicIntQueueSubscription.addAndGet:(I)I
istore 2
25: iload 2
ifne 5
end local 5 26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 27 1 a Lorg/reactivestreams/Subscriber<-TT;>;
1 27 2 missed I
2 27 3 q Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;
5 27 4 failFast Z
10 26 5 d Z
19 24 6 ex Ljava/lang/Throwable;
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;)V
MethodParameters:
Name Flags
a
void drain();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
invokevirtual io.reactivex.internal.subscriptions.BasicIntQueueSubscription.getAndIncrement:()I
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
iconst_1
istore 1
start local 1 3: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscriber
astore 2
start local 2 4: StackMap locals: int org.reactivestreams.Subscriber
StackMap stack:
aload 2
ifnull 10
5: aload 0
getfield io.reactivex.processors.UnicastProcessor.enableOperatorFusion:Z
ifeq 8
6: aload 0
aload 2
invokevirtual io.reactivex.processors.UnicastProcessor.drainFused:(Lorg/reactivestreams/Subscriber;)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.reactivex.processors.UnicastProcessor.drainRegular:(Lorg/reactivestreams/Subscriber;)V
9: StackMap locals:
StackMap stack:
return
10: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
iload 1
ineg
invokevirtual io.reactivex.internal.subscriptions.BasicIntQueueSubscription.addAndGet:(I)I
istore 1
11: iload 1
ifne 13
12: goto 15
13: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscriber
astore 2
14: goto 4
15: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
3 16 1 missed I
4 16 2 a Lorg/reactivestreams/Subscriber<-TT;>;
boolean checkTerminated(boolean, boolean, boolean, org.reactivestreams.Subscriber<? super T>, io.reactivex.internal.queue.SpscLinkedArrayQueue<T>);
descriptor: (ZZZLorg/reactivestreams/Subscriber;Lio/reactivex/internal/queue/SpscLinkedArrayQueue;)Z
flags: (0x0000)
Code:
stack=2, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 4
1: aload 5
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.clear:()V
2: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iload 2
ifeq 18
5: iload 1
ifeq 10
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
ifnull 10
6: aload 5
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.clear:()V
7: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
8: aload 4
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
iload 3
ifeq 18
11: aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
astore 6
start local 6 12: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
13: aload 6
ifnull 16
14: aload 4
aload 6
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
15: goto 17
16: StackMap locals: java.lang.Throwable
StackMap stack:
aload 4
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
17: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 6 18: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 19 1 failFast Z
0 19 2 d Z
0 19 3 empty Z
0 19 4 a Lorg/reactivestreams/Subscriber<-TT;>;
0 19 5 q Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;
12 18 6 e Ljava/lang/Throwable;
Signature: (ZZZLorg/reactivestreams/Subscriber<-TT;>;Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;)Z
MethodParameters:
Name Flags
failFast
d
empty
a
q
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.processors.UnicastProcessor.done:Z
ifne 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 3
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.reactivestreams.Subscription.cancel:()V
2: goto 4
3: StackMap locals:
StackMap stack:
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/processors/UnicastProcessor<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 1
ldc "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifne 2
aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 3
2: StackMap locals:
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.processors.UnicastProcessor.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
aload 1
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.offer:(Ljava/lang/Object;)Z
pop
4: aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.drain:()V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 6 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 1
ldc "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invokestatic io.reactivex.internal.functions.ObjectHelper.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifne 2
aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 4
2: StackMap locals:
StackMap stack:
aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
5: aload 0
iconst_1
putfield io.reactivex.processors.UnicastProcessor.done:Z
6: aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.doTerminate:()V
7: aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.drain:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 9 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
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifne 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 2
1: StackMap locals:
StackMap stack:
return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.processors.UnicastProcessor.done:Z
3: aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.doTerminate:()V
4: aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.drain:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
protected void subscribeActual(org.reactivestreams.Subscriber<? super T>);
descriptor: (Lorg/reactivestreams/Subscriber;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.once:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifne 8
aload 0
getfield io.reactivex.processors.UnicastProcessor.once:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 8
1: aload 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.wip:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
invokeinterface org.reactivestreams.Subscriber.onSubscribe:(Lorg/reactivestreams/Subscription;)V
2: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
3: aload 0
getfield io.reactivex.processors.UnicastProcessor.cancelled:Z
ifeq 6
4: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.lazySet:(Ljava/lang/Object;)V
5: goto 9
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.processors.UnicastProcessor.drain:()V
7: goto 9
8: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "This processor allows only a single Subscriber"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
aload 1
invokestatic io.reactivex.internal.subscriptions.EmptySubscription.error:(Ljava/lang/Throwable;Lorg/reactivestreams/Subscriber;)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
0 10 1 s Lorg/reactivestreams/Subscriber<-TT;>;
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;)V
MethodParameters:
Name Flags
s
public boolean hasSubscribers();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.downstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
ifnull 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/UnicastProcessor<TT;>;
public java.lang.Throwable getThrowable();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifeq 2
1: aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/processors/UnicastProcessor<TT;>;
RuntimeInvisibleAnnotations:
io.reactivex.annotations.Nullable()
public boolean hasComplete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifeq 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
ifnonnull 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/UnicastProcessor<TT;>;
public boolean hasThrowable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.processors.UnicastProcessor.done:Z
ifeq 1
aload 0
getfield io.reactivex.processors.UnicastProcessor.error:Ljava/lang/Throwable;
ifnull 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/UnicastProcessor<TT;>;
}
Signature: <T:Ljava/lang/Object;>Lio/reactivex/processors/FlowableProcessor<TT;>;
SourceFile: "UnicastProcessor.java"
NestMembers:
io.reactivex.processors.UnicastProcessor$UnicastQueueSubscription
InnerClasses:
final UnicastQueueSubscription = io.reactivex.processors.UnicastProcessor$UnicastQueueSubscription of io.reactivex.processors.UnicastProcessor