final class io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator<T> extends java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription> implements io.reactivex.FlowableSubscriber<T>, java.util.Iterator<T>, java.lang.Runnable, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator
super_class: java.util.concurrent.atomic.AtomicReference
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6695226475494099826
final io.reactivex.internal.queue.SpscArrayQueue<T> queue;
descriptor: Lio/reactivex/internal/queue/SpscArrayQueue;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/internal/queue/SpscArrayQueue<TT;>;
final long batchSize;
descriptor: J
flags: (0x0010) ACC_FINAL
final long limit;
descriptor: J
flags: (0x0010) ACC_FINAL
final java.util.concurrent.locks.Lock lock;
descriptor: Ljava/util/concurrent/locks/Lock;
flags: (0x0010) ACC_FINAL
final java.util.concurrent.locks.Condition condition;
descriptor: Ljava/util/concurrent/locks/Condition;
flags: (0x0010) ACC_FINAL
long produced;
descriptor: J
flags: (0x0000)
volatile boolean done;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0000)
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
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
1: aload 0
new io.reactivex.internal.queue.SpscArrayQueue
dup
iload 1
invokespecial io.reactivex.internal.queue.SpscArrayQueue.<init>:(I)V
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.queue:Lio/reactivex/internal/queue/SpscArrayQueue;
2: aload 0
iload 1
i2l
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.batchSize:J
3: aload 0
iload 1
iload 1
iconst_2
ishr
isub
i2l
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.limit:J
4: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
5: aload 0
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.newCondition:()Ljava/util/concurrent/locks/Condition;
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.condition:Ljava/util/concurrent/locks/Condition;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
0 7 1 batchSize I
MethodParameters:
Name Flags
batchSize
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=5, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.done:Z
istore 1
start local 1 1: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.queue:Lio/reactivex/internal/queue/SpscArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscArrayQueue.isEmpty:()Z
istore 2
start local 2 2: iload 1
ifeq 8
3: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.error:Ljava/lang/Throwable;
astore 3
start local 3 4: aload 3
ifnull 6
5: aload 3
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
6: StackMap locals: int int java.lang.Throwable
StackMap stack:
iload 2
ifeq 8
7: iconst_0
ireturn
end local 3 8: StackMap locals:
StackMap stack:
iload 2
ifeq 23
9: invokestatic io.reactivex.internal.util.BlockingHelper.verifyNonBlocking:()V
10: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.condition:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.await:()V
13: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.done:Z
ifne 21
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.queue:Lio/reactivex/internal/queue/SpscArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscArrayQueue.isEmpty:()Z
ifne 12
14: goto 21
StackMap locals:
StackMap stack: java.lang.InterruptedException
15: astore 3
start local 3 16: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.run:()V
17: aload 3
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 3 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
19: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
20: aload 4
athrow
21: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
22: goto 0
23: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
1 24 1 d Z
2 24 2 empty Z
4 8 3 e Ljava/lang/Throwable;
16 18 3 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
11 14 15 Class java.lang.InterruptedException
11 18 18 any
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.hasNext:()Z
ifeq 9
1: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.queue:Lio/reactivex/internal/queue/SpscArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscArrayQueue.poll:()Ljava/lang/Object;
astore 1
start local 1 2: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.produced:J
lconst_1
ladd
lstore 2
start local 2 3: lload 2
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.limit:J
lcmp
ifne 7
4: aload 0
lconst_0
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.produced:J
5: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
lload 2
invokeinterface org.reactivestreams.Subscription.request:(J)V
6: goto 8
7: StackMap locals: java.lang.Object long
StackMap stack:
aload 0
lload 2
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.produced:J
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 9: StackMap locals:
StackMap stack:
new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
2 9 1 v TT;
3 9 2 p J
Signature: ()TT;
public void onSubscribe(org.reactivestreams.Subscription);
descriptor: (Lorg/reactivestreams/Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.batchSize:J
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.setOnce:(Ljava/util/concurrent/atomic/AtomicReference;Lorg/reactivestreams/Subscription;J)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
0 2 1 s Lorg/reactivestreams/Subscription;
MethodParameters:
Name Flags
s
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.queue:Lio/reactivex/internal/queue/SpscArrayQueue;
aload 1
invokevirtual io.reactivex.internal.queue.SpscArrayQueue.offer:(Ljava/lang/Object;)Z
ifne 4
1: aload 0
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.cancel:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
2: aload 0
new io.reactivex.exceptions.MissingBackpressureException
dup
ldc "Queue full?!"
invokespecial io.reactivex.exceptions.MissingBackpressureException.<init>:(Ljava/lang/String;)V
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.onError:(Ljava/lang/Throwable;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.signalConsumer:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<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 0
aload 1
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.error:Ljava/lang/Throwable;
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.done:Z
2: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.signalConsumer:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
0 4 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.BlockingFlowableIterable$BlockingFlowableIterator.done:Z
1: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.signalConsumer:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
void signalConsumer();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.condition:Ljava/util/concurrent/locks/Condition;
invokeinterface java.util.concurrent.locks.Condition.signalAll:()V
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
Exception table:
from to target type
1 3 3 any
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.cancel:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
1: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.signalConsumer:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "remove"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.cancel:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator.get:()Ljava/lang/Object;
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if_acmpne 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/internal/operators/flowable/BlockingFlowableIterable$BlockingFlowableIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscription;>;Lio/reactivex/FlowableSubscriber<TT;>;Ljava/util/Iterator<TT;>;Ljava/lang/Runnable;Lio/reactivex/disposables/Disposable;
SourceFile: "BlockingFlowableIterable.java"
NestHost: io.reactivex.internal.operators.flowable.BlockingFlowableIterable
InnerClasses:
final BlockingFlowableIterator = io.reactivex.internal.operators.flowable.BlockingFlowableIterable$BlockingFlowableIterator of io.reactivex.internal.operators.flowable.BlockingFlowableIterable