class io.vertx.ext.unit.impl.AsyncImpl extends io.vertx.ext.unit.impl.CompletionImpl<java.lang.Void> implements io.vertx.ext.unit.Async
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.ext.unit.impl.AsyncImpl
super_class: io.vertx.ext.unit.impl.CompletionImpl
{
private final int initialCount;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger count;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean strict;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial io.vertx.ext.unit.impl.CompletionImpl.<init>:()V
1: aload 0
iload 1
putfield io.vertx.ext.unit.impl.AsyncImpl.initialCount:I
2: aload 0
iload 2
putfield io.vertx.ext.unit.impl.AsyncImpl.strict:Z
3: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iload 1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield io.vertx.ext.unit.impl.AsyncImpl.count:Ljava/util/concurrent/atomic/AtomicInteger;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/unit/impl/AsyncImpl;
0 5 1 initialCount I
0 5 2 strict Z
MethodParameters:
Name Flags
initialCount
strict
public int count();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/unit/impl/AsyncImpl;
public void countDown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.count:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
start local 1 1: iload 1
ifne 12
2: iconst_0
istore 2
start local 2 3: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.strict:Z
ifeq 13
4: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.initialCount:I
iconst_1
if_icmpne 7
5: ldc "Countdown invoked more than once"
astore 3
start local 3 6: goto 11
end local 3 StackMap locals: int int
StackMap stack:
7: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.initialCount:I
iconst_2
if_icmpne 10
8: ldc "Countdown invoked more than twice"
astore 3
start local 3 9: goto 11
end local 3 10: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Countdown invoked more than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.initialCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " times"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 11: StackMap locals: java.lang.String
StackMap stack:
new java.lang.IllegalStateException
dup
aload 3
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 12: StackMap locals:
StackMap stack:
iload 1
iconst_1
isub
istore 2
start local 2 13: StackMap locals: int
StackMap stack:
aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.count:Ljava/util/concurrent/atomic/AtomicInteger;
iload 1
iload 2
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
14: iload 2
ifne 16
15: aload 0
aconst_null
invokevirtual io.vertx.ext.unit.impl.AsyncImpl.release:(Ljava/lang/Throwable;)V
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/vertx/ext/unit/impl/AsyncImpl;
1 17 1 oldValue I
3 12 2 newValue I
13 17 2 newValue I
6 7 3 msg Ljava/lang/String;
9 10 3 msg Ljava/lang/String;
11 12 3 msg Ljava/lang/String;
public void complete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.count:Ljava/util/concurrent/atomic/AtomicInteger;
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndSet:(I)I
istore 1
start local 1 1: iload 1
ifle 4
2: aload 0
aconst_null
invokevirtual io.vertx.ext.unit.impl.AsyncImpl.release:(Ljava/lang/Throwable;)V
3: goto 5
4: StackMap locals: int
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "The Async complete method has been called more than "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.initialCount:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " times, check your test."
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
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/unit/impl/AsyncImpl;
1 6 1 value I
void release(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 3
1: aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.completable:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.ext.unit.impl.AsyncImpl.completable:Ljava/util/concurrent/CompletableFuture;
aconst_null
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/ext/unit/impl/AsyncImpl;
0 5 1 failure Ljava/lang/Throwable;
MethodParameters:
Name Flags
failure
}
Signature: Lio/vertx/ext/unit/impl/CompletionImpl<Ljava/lang/Void;>;Lio/vertx/ext/unit/Async;
SourceFile: "AsyncImpl.java"