final class reactor.core.publisher.MonoToCompletableFuture<T> extends java.util.concurrent.CompletableFuture<T> implements reactor.core.CoreSubscriber<T>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: reactor.core.publisher.MonoToCompletableFuture
super_class: java.util.concurrent.CompletableFuture
{
final java.util.concurrent.atomic.AtomicReference<org.reactivestreams.Subscription> ref;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/reactivestreams/Subscription;>;
final boolean cancelSourceOnNext;
descriptor: Z
flags: (0x0010) ACC_FINAL
void <init>(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.util.concurrent.CompletableFuture.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
2: aload 0
iload 1
putfield reactor.core.publisher.MonoToCompletableFuture.cancelSourceOnNext:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
0 4 1 sourceCanEmitMoreThanOnce Z
MethodParameters:
Name Flags
sourceCanEmitMoreThanOnce
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokespecial java.util.concurrent.CompletableFuture.cancel:(Z)Z
istore 2
start local 2 1: iload 2
ifeq 5
2: aload 0
getfield reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 3
start local 3 3: aload 3
ifnull 5
4: aload 3
invokeinterface org.reactivestreams.Subscription.cancel:()V
end local 3 5: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
0 6 1 mayInterruptIfRunning Z
1 6 2 cancelled Z
3 5 3 s Lorg/reactivestreams/Subscription;
MethodParameters:
Name Flags
mayInterruptIfRunning
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 reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
aload 1
invokestatic reactor.core.publisher.Operators.validate:(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
ifeq 3
1: aload 1
ldc 9223372036854775807
invokeinterface org.reactivestreams.Subscription.request:(J)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.reactivestreams.Subscription.cancel:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lreactor/core/publisher/MonoToCompletableFuture<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=3, args_size=2
start local 0 start local 1 0: aload 0
getfield reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.reactivestreams.Subscription
astore 2
start local 2 1: aload 2
ifnull 6
2: aload 0
aload 1
invokevirtual reactor.core.publisher.MonoToCompletableFuture.complete:(Ljava/lang/Object;)Z
pop
3: aload 0
getfield reactor.core.publisher.MonoToCompletableFuture.cancelSourceOnNext:Z
ifeq 7
4: aload 2
invokeinterface org.reactivestreams.Subscription.cancel:()V
5: goto 7
6: StackMap locals: org.reactivestreams.Subscription
StackMap stack:
aload 1
aload 0
invokevirtual reactor.core.publisher.MonoToCompletableFuture.currentContext:()Lreactor/util/context/Context;
invokestatic reactor.core.publisher.Operators.onNextDropped:(Ljava/lang/Object;Lreactor/util/context/Context;)V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
0 8 1 t TT;
1 8 2 s Lorg/reactivestreams/Subscription;
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
getfield reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 2
1: aload 0
aload 1
invokevirtual reactor.core.publisher.MonoToCompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
0 3 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 reactor.core.publisher.MonoToCompletableFuture.ref:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.getAndSet:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 2
1: aload 0
aconst_null
invokevirtual reactor.core.publisher.MonoToCompletableFuture.complete:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
public reactor.util.context.Context currentContext();
descriptor: ()Lreactor/util/context/Context;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic reactor.util.context.Context.empty:()Lreactor/util/context/Context;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lreactor/core/publisher/MonoToCompletableFuture<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CompletableFuture<TT;>;Lreactor/core/CoreSubscriber<TT;>;
SourceFile: "MonoToCompletableFuture.java"