public final class io.reactivex.internal.observers.FutureObserver<T> extends java.util.concurrent.CountDownLatch implements io.reactivex.Observer<T>, java.util.concurrent.Future<T>, io.reactivex.disposables.Disposable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.observers.FutureObserver
super_class: java.util.concurrent.CountDownLatch
{
T value;
descriptor: Ljava/lang/Object;
flags: (0x0000)
Signature: TT;
java.lang.Throwable error;
descriptor: Ljava/lang/Throwable;
flags: (0x0000)
final java.util.concurrent.atomic.AtomicReference<io.reactivex.disposables.Disposable> upstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lio/reactivex/disposables/Disposable;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
astore 2
start local 2 1: aload 2
aload 0
if_acmpeq 2
aload 2
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
if_acmpne 3
2: StackMap locals: io.reactivex.disposables.Disposable
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 0
4: aload 2
ifnull 6
5: aload 2
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.countDown:()V
7: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
0 8 1 mayInterruptIfRunning Z
1 8 2 a Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
mayInterruptIfRunning
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.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/observers/FutureObserver<TT;>;
public boolean isDone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.getCount:()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/internal/observers/FutureObserver<TT;>;
public T get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.getCount:()J
lconst_0
lcmp
ifeq 3
1: invokestatic io.reactivex.internal.util.BlockingHelper.verifyNonBlocking:()V
2: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.await:()V
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.isCancelled:()Z
ifeq 5
4: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.error:Ljava/lang/Throwable;
astore 1
start local 1 6: aload 1
ifnull 8
7: new java.util.concurrent.ExecutionException
dup
aload 1
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
8: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.value:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
6 9 1 ex Ljava/lang/Throwable;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Signature: ()TT;
public T get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.getCount:()J
lconst_0
lcmp
ifeq 4
1: invokestatic io.reactivex.internal.util.BlockingHelper.verifyNonBlocking:()V
2: aload 0
lload 1
aload 3
invokevirtual io.reactivex.internal.observers.FutureObserver.await:(JLjava/util/concurrent/TimeUnit;)Z
ifne 4
3: new java.util.concurrent.TimeoutException
dup
lload 1
aload 3
invokestatic io.reactivex.internal.util.ExceptionHelper.timeoutMessage:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/String;
invokespecial java.util.concurrent.TimeoutException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.isCancelled:()Z
ifeq 6
5: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.error:Ljava/lang/Throwable;
astore 4
start local 4 7: aload 4
ifnull 9
8: new java.util.concurrent.ExecutionException
dup
aload 4
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
9: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.value:Ljava/lang/Object;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
0 10 1 timeout J
0 10 3 unit Ljava/util/concurrent/TimeUnit;
7 10 4 ex Ljava/lang/Throwable;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Signature: (JLjava/util/concurrent/TimeUnit;)TT;
MethodParameters:
Name Flags
timeout
unit
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
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
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/observers/FutureObserver<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=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.observers.FutureObserver.value:Ljava/lang/Object;
ifnull 4
1: aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
invokeinterface io.reactivex.disposables.Disposable.dispose:()V
2: aload 0
new java.lang.IndexOutOfBoundsException
dup
ldc "More than one element received"
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
invokevirtual io.reactivex.internal.observers.FutureObserver.onError:(Ljava/lang/Throwable;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.reactivex.internal.observers.FutureObserver.value:Ljava/lang/Object;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/observers/FutureObserver<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=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.observers.FutureObserver.error:Ljava/lang/Throwable;
ifnonnull 9
1: aload 0
aload 1
putfield io.reactivex.internal.observers.FutureObserver.error:Ljava/lang/Throwable;
2: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
astore 2
start local 2 3: aload 2
aload 0
if_acmpeq 4
aload 2
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
if_acmpne 6
4: StackMap locals: io.reactivex.disposables.Disposable
StackMap stack:
aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
5: return
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 2
7: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.countDown:()V
8: return
end local 2 9: StackMap locals:
StackMap stack:
aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
0 11 1 t Ljava/lang/Throwable;
3 9 2 a Lio/reactivex/disposables/Disposable;
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.observers.FutureObserver.value:Ljava/lang/Object;
ifnonnull 3
1: aload 0
new java.util.NoSuchElementException
dup
ldc "The source is empty"
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
invokevirtual io.reactivex.internal.observers.FutureObserver.onError:(Ljava/lang/Throwable;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast io.reactivex.disposables.Disposable
astore 1
start local 1 4: aload 1
aload 0
if_acmpeq 5
aload 1
getstatic io.reactivex.internal.disposables.DisposableHelper.DISPOSED:Lio/reactivex/internal/disposables/DisposableHelper;
if_acmpne 6
5: StackMap locals: io.reactivex.disposables.Disposable
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.observers.FutureObserver.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
7: aload 0
invokevirtual io.reactivex.internal.observers.FutureObserver.countDown:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
4 9 1 a Lio/reactivex/disposables/Disposable;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/observers/FutureObserver<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.observers.FutureObserver.isDone:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/observers/FutureObserver<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CountDownLatch;Lio/reactivex/Observer<TT;>;Ljava/util/concurrent/Future<TT;>;Lio/reactivex/disposables/Disposable;
SourceFile: "FutureObserver.java"