public final class io.reactivex.internal.subscribers.FutureSubscriber<T> extends java.util.concurrent.CountDownLatch implements io.reactivex.FlowableSubscriber<T>, java.util.concurrent.Future<T>, org.reactivestreams.Subscription
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.subscribers.FutureSubscriber
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<org.reactivestreams.Subscription> upstream;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscription;>;
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.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/reactivex/internal/subscribers/FutureSubscriber<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.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 2
start local 2 1: aload 2
aload 0
if_acmpeq 2
aload 2
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if_acmpne 3
2: StackMap locals: org.reactivestreams.Subscription
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 2
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
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 org.reactivestreams.Subscription.cancel:()V
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.subscribers.FutureSubscriber.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/subscribers/FutureSubscriber<TT;>;
0 8 1 mayInterruptIfRunning Z
1 8 2 a Lorg/reactivestreams/Subscription;
MethodParameters:
Name Flags
mayInterruptIfRunning
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.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/subscribers/FutureSubscriber<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.subscribers.FutureSubscriber.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/subscribers/FutureSubscriber<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.subscribers.FutureSubscriber.getCount:()J
lconst_0
lcmp
ifeq 3
1: invokestatic io.reactivex.internal.util.BlockingHelper.verifyNonBlocking:()V
2: aload 0
invokevirtual io.reactivex.internal.subscribers.FutureSubscriber.await:()V
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.reactivex.internal.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.value:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/internal/subscribers/FutureSubscriber<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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.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/subscribers/FutureSubscriber<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(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
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
ldc 9223372036854775807
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/subscribers/FutureSubscriber<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.subscribers.FutureSubscriber.value:Ljava/lang/Object;
ifnull 4
1: aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
invokeinterface org.reactivestreams.Subscription.cancel:()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.subscribers.FutureSubscriber.onError:(Ljava/lang/Throwable;)V
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.reactivex.internal.subscribers.FutureSubscriber.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/subscribers/FutureSubscriber<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: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 2
start local 2 1: aload 2
aload 0
if_acmpeq 2
aload 2
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if_acmpne 4
2: StackMap locals: org.reactivestreams.Subscription
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.internal.subscribers.FutureSubscriber.error:Ljava/lang/Throwable;
5: aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.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 0
6: aload 0
invokevirtual io.reactivex.internal.subscribers.FutureSubscriber.countDown:()V
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/subscribers/FutureSubscriber<TT;>;
0 8 1 t Ljava/lang/Throwable;
1 8 2 a Lorg/reactivestreams/Subscription;
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.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.onError:(Ljava/lang/Throwable;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.upstream:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 1
start local 1 4: aload 1
aload 0
if_acmpeq 5
aload 1
getstatic io.reactivex.internal.subscriptions.SubscriptionHelper.CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if_acmpne 6
5: StackMap locals: org.reactivestreams.Subscription
StackMap stack:
return
6: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.subscribers.FutureSubscriber.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.subscribers.FutureSubscriber.countDown:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/reactivex/internal/subscribers/FutureSubscriber<TT;>;
4 9 1 a Lorg/reactivestreams/Subscription;
public void cancel();
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/subscribers/FutureSubscriber<TT;>;
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/reactivex/internal/subscribers/FutureSubscriber<TT;>;
0 1 1 n J
MethodParameters:
Name Flags
n
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CountDownLatch;Lio/reactivex/FlowableSubscriber<TT;>;Ljava/util/concurrent/Future<TT;>;Lorg/reactivestreams/Subscription;
SourceFile: "FutureSubscriber.java"