final class reactor.core.publisher.BlockingOptionalMonoSubscriber<T> extends java.util.concurrent.CountDownLatch implements reactor.core.publisher.InnerConsumer<T>, reactor.core.Disposable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: reactor.core.publisher.BlockingOptionalMonoSubscriber
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)
org.reactivestreams.Subscription s;
descriptor: Lorg/reactivestreams/Subscription;
flags: (0x0000)
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
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 reactor.core.publisher.BlockingOptionalMonoSubscriber.value:Ljava/lang/Object;
ifnonnull 3
1: aload 0
aload 1
putfield reactor.core.publisher.BlockingOptionalMonoSubscriber.value:Ljava/lang/Object;
2: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.countDown:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
0 4 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
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.value:Ljava/lang/Object;
ifnonnull 2
1: aload 0
aload 1
putfield reactor.core.publisher.BlockingOptionalMonoSubscriber.error:Ljava/lang/Throwable;
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.countDown:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
0 4 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public final void onSubscribe(org.reactivestreams.Subscription);
descriptor: (Lorg/reactivestreams/Subscription;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield reactor.core.publisher.BlockingOptionalMonoSubscriber.s:Lorg/reactivestreams/Subscription;
1: aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.cancelled:Z
ifne 3
2: aload 1
ldc 9223372036854775807
invokeinterface org.reactivestreams.Subscription.request:(J)V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
0 4 1 s Lorg/reactivestreams/Subscription;
MethodParameters:
Name Flags
s
public final void onComplete();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.countDown:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<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/BlockingOptionalMonoSubscriber<TT;>;
public final void dispose();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
iconst_1
putfield reactor.core.publisher.BlockingOptionalMonoSubscriber.cancelled:Z
1: aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.s:Lorg/reactivestreams/Subscription;
astore 1
start local 1 2: aload 1
ifnull 5
3: aload 0
aconst_null
putfield reactor.core.publisher.BlockingOptionalMonoSubscriber.s:Lorg/reactivestreams/Subscription;
4: aload 1
invokeinterface org.reactivestreams.Subscription.cancel:()V
5: StackMap locals: org.reactivestreams.Subscription
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
2 6 1 s Lorg/reactivestreams/Subscription;
final java.util.Optional<T> blockingGet();
descriptor: ()Ljava/util/Optional;
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=3, args_size=1
start local 0 0: invokestatic reactor.core.scheduler.Schedulers.isInNonBlockingThread:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "blockOptional() is blocking, which is not supported in thread "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.getCount:()J
lconst_0
lcmp
ifeq 10
3: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.await:()V
4: goto 10
5: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 6: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.dispose:()V
7: aload 1
invokestatic reactor.core.Exceptions.propagate:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
astore 2
start local 2 8: aload 2
new java.lang.Exception
dup
ldc "#blockOptional() has been interrupted"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.RuntimeException.addSuppressed:(Ljava/lang/Throwable;)V
9: aload 2
athrow
end local 2 end local 1 10: StackMap locals:
StackMap stack:
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.error:Ljava/lang/Throwable;
astore 1
start local 1 11: aload 1
ifnull 15
12: aload 1
invokestatic reactor.core.Exceptions.propagate:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
astore 2
start local 2 13: aload 2
new java.lang.Exception
dup
ldc "#block terminated with an error"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.RuntimeException.addSuppressed:(Ljava/lang/Throwable;)V
14: aload 2
athrow
end local 2 15: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.value:Ljava/lang/Object;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
6 10 1 ex Ljava/lang/InterruptedException;
8 10 2 re Ljava/lang/RuntimeException;
11 16 1 e Ljava/lang/Throwable;
13 15 2 re Ljava/lang/RuntimeException;
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
Signature: ()Ljava/util/Optional<TT;>;
final java.util.Optional<T> blockingGet(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/util/Optional;
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 3 0: invokestatic reactor.core.scheduler.Schedulers.isInNonBlockingThread:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "blockOptional() is blocking, which is not supported in thread "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.getCount:()J
lconst_0
lcmp
ifeq 11
3: aload 0
lload 1
aload 3
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.await:(JLjava/util/concurrent/TimeUnit;)Z
ifne 11
4: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.dispose:()V
5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Timeout on blocking read for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 4
start local 4 7: aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.dispose:()V
8: aload 4
invokestatic reactor.core.Exceptions.propagate:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
astore 5
start local 5 9: aload 5
new java.lang.Exception
dup
ldc "#blockOptional(timeout) has been interrupted"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.RuntimeException.addSuppressed:(Ljava/lang/Throwable;)V
10: aload 5
athrow
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.error:Ljava/lang/Throwable;
astore 4
start local 4 12: aload 4
ifnull 16
13: aload 4
invokestatic reactor.core.Exceptions.propagate:(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
astore 5
start local 5 14: aload 5
new java.lang.Exception
dup
ldc "#block terminated with an error"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.RuntimeException.addSuppressed:(Ljava/lang/Throwable;)V
15: aload 5
athrow
end local 5 16: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.value:Ljava/lang/Object;
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
0 17 1 timeout J
0 17 3 unit Ljava/util/concurrent/TimeUnit;
7 11 4 ex Ljava/lang/InterruptedException;
9 11 5 re Ljava/lang/RuntimeException;
12 17 4 e Ljava/lang/Throwable;
14 16 5 re Ljava/lang/RuntimeException;
Exception table:
from to target type
3 6 6 Class java.lang.InterruptedException
Signature: (JLjava/util/concurrent/TimeUnit;)Ljava/util/Optional<TT;>;
MethodParameters:
Name Flags
timeout
unit
public java.lang.Object scanUnsafe(reactor.core.Scannable$Attr);
descriptor: (Lreactor/core/Scannable$Attr;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic reactor.core.Scannable$Attr.TERMINATED:Lreactor/core/Scannable$Attr;
if_acmpne 2
aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.getCount:()J
lconst_0
lcmp
ifne 1
iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
StackMap locals:
StackMap stack:
1: iconst_0
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.PARENT:Lreactor/core/Scannable$Attr;
if_acmpne 3
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.s:Lorg/reactivestreams/Subscription;
areturn
3: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.CANCELLED:Lreactor/core/Scannable$Attr;
if_acmpne 4
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.cancelled:Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
4: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.ERROR:Lreactor/core/Scannable$Attr;
if_acmpne 5
aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.error:Ljava/lang/Throwable;
areturn
5: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.PREFETCH:Lreactor/core/Scannable$Attr;
if_acmpne 6
ldc 2147483647
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
6: StackMap locals:
StackMap stack:
aload 1
getstatic reactor.core.Scannable$Attr.RUN_STYLE:Lreactor/core/Scannable$Attr;
if_acmpne 7
getstatic reactor.core.Scannable$Attr$RunStyle.SYNC:Lreactor/core/Scannable$Attr$RunStyle;
areturn
7: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
0 8 1 key Lreactor/core/Scannable$Attr;
RuntimeVisibleAnnotations:
reactor.util.annotation.Nullable()
MethodParameters:
Name Flags
key
public boolean isDisposed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield reactor.core.publisher.BlockingOptionalMonoSubscriber.cancelled:Z
ifne 1
aload 0
invokevirtual reactor.core.publisher.BlockingOptionalMonoSubscriber.getCount:()J
lconst_0
lcmp
ifeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lreactor/core/publisher/BlockingOptionalMonoSubscriber<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/util/concurrent/CountDownLatch;Lreactor/core/publisher/InnerConsumer<TT;>;Lreactor/core/Disposable;
SourceFile: "BlockingOptionalMonoSubscriber.java"
InnerClasses:
public Attr = reactor.core.Scannable$Attr of reactor.core.Scannable
public final RunStyle = reactor.core.Scannable$Attr$RunStyle of reactor.core.Scannable$Attr