final class io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator<T> extends java.util.concurrent.atomic.AtomicReference<io.reactivex.disposables.Disposable> implements io.reactivex.Observer<T>, java.util.Iterator<T>, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator
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.SpscLinkedArrayQueue<T> queue;
descriptor: Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/internal/queue/SpscLinkedArrayQueue<TT;>;
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
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.SpscLinkedArrayQueue
dup
iload 1
invokespecial io.reactivex.internal.queue.SpscLinkedArrayQueue.<init>:(I)V
putfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
2: aload 0
new java.util.concurrent.locks.ReentrantLock
dup
invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
putfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.lock:Ljava/util/concurrent/locks/Lock;
3: aload 0
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.newCondition:()Ljava/util/concurrent/locks/Condition;
putfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.condition:Ljava/util/concurrent/locks/Condition;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
0 5 1 batchSize I
MethodParameters:
Name Flags
batchSize
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.done:Z
istore 1
start local 1 1: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.isEmpty:()Z
istore 2
start local 2 2: iload 1
ifeq 8
3: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.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 24
9: invokestatic io.reactivex.internal.util.BlockingHelper.verifyNonBlocking:()V
10: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.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.observable.BlockingObservableIterable$BlockingObservableIterator.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.observable.BlockingObservableIterable$BlockingObservableIterator.done:Z
ifne 18
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.isEmpty:()Z
ifne 12
14: goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 3
16: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
17: aload 3
athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
19: goto 0
StackMap locals:
StackMap stack: java.lang.InterruptedException
20: astore 3
start local 3 21: aload 0
invokestatic io.reactivex.internal.disposables.DisposableHelper.dispose:(Ljava/util/concurrent/atomic/AtomicReference;)Z
pop
22: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.signalConsumer:()V
23: aload 3
invokestatic io.reactivex.internal.util.ExceptionHelper.wrapOrThrow:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
athrow
end local 3 24: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
1 25 1 d Z
2 25 2 empty Z
4 8 3 e Ljava/lang/Throwable;
21 24 3 ex Ljava/lang/InterruptedException;
Exception table:
from to target type
11 15 15 any
9 19 20 Class java.lang.InterruptedException
public T next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.hasNext:()Z
ifeq 2
1: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.poll:()Ljava/lang/Object;
areturn
2: 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 3 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
Signature: ()TT;
public void onSubscribe(io.reactivex.disposables.Disposable);
descriptor: (Lio/reactivex/disposables/Disposable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.reactivex.internal.disposables.DisposableHelper.setOnce:(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/Disposable;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
0 2 1 d Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
d
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.observable.BlockingObservableIterable$BlockingObservableIterator.queue:Lio/reactivex/internal/queue/SpscLinkedArrayQueue;
aload 1
invokevirtual io.reactivex.internal.queue.SpscLinkedArrayQueue.offer:(Ljava/lang/Object;)Z
pop
1: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.signalConsumer:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
0 3 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.observable.BlockingObservableIterable$BlockingObservableIterator.error:Ljava/lang/Throwable;
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.done:Z
2: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.signalConsumer:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<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.observable.BlockingObservableIterable$BlockingObservableIterator.done:Z
1: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.signalConsumer:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<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.observable.BlockingObservableIterable$BlockingObservableIterator.lock:Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.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.observable.BlockingObservableIterable$BlockingObservableIterator.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.observable.BlockingObservableIterable$BlockingObservableIterator.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/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
Exception table:
from to target type
1 3 3 any
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/observable/BlockingObservableIterable$BlockingObservableIterator<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.disposables.DisposableHelper.dispose:(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/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
invokestatic io.reactivex.internal.disposables.DisposableHelper.isDisposed:(Lio/reactivex/disposables/Disposable;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/operators/observable/BlockingObservableIterable$BlockingObservableIterator<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/disposables/Disposable;>;Lio/reactivex/Observer<TT;>;Ljava/util/Iterator<TT;>;Lio/reactivex/disposables/Disposable;
SourceFile: "BlockingObservableIterable.java"
NestHost: io.reactivex.internal.operators.observable.BlockingObservableIterable
InnerClasses:
final BlockingObservableIterator = io.reactivex.internal.operators.observable.BlockingObservableIterable$BlockingObservableIterator of io.reactivex.internal.operators.observable.BlockingObservableIterable