public final class io.netty.util.concurrent.PromiseCombiner
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.util.concurrent.PromiseCombiner
super_class: java.lang.Object
{
private int expectedCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int doneCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean doneAdding;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.netty.util.concurrent.Promise<java.lang.Void> aggregatePromise;
descriptor: Lio/netty/util/concurrent/Promise;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/netty/util/concurrent/Promise<Ljava/lang/Void;>;
private java.lang.Throwable cause;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
private final io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<?>> listener;
descriptor: Lio/netty/util/concurrent/GenericFutureListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/GenericFutureListener<Lio/netty/util/concurrent/Future<*>;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new io.netty.util.concurrent.PromiseCombiner$1
dup
aload 0
invokespecial io.netty.util.concurrent.PromiseCombiner$1.<init>:(Lio/netty/util/concurrent/PromiseCombiner;)V
putfield io.netty.util.concurrent.PromiseCombiner.listener:Lio/netty/util/concurrent/GenericFutureListener;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/concurrent/PromiseCombiner;
public void add(io.netty.util.concurrent.Promise);
descriptor: (Lio/netty/util/concurrent/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.util.concurrent.PromiseCombiner.add:(Lio/netty/util/concurrent/Future;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseCombiner;
0 2 1 promise Lio/netty/util/concurrent/Promise;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
promise
public void add(io.netty.util.concurrent.Future);
descriptor: (Lio/netty/util/concurrent/Future;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.util.concurrent.PromiseCombiner.checkAddAllowed:()V
1: aload 0
dup
getfield io.netty.util.concurrent.PromiseCombiner.expectedCount:I
iconst_1
iadd
putfield io.netty.util.concurrent.PromiseCombiner.expectedCount:I
2: aload 1
aload 0
getfield io.netty.util.concurrent.PromiseCombiner.listener:Lio/netty/util/concurrent/GenericFutureListener;
invokeinterface io.netty.util.concurrent.Future.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/util/concurrent/PromiseCombiner;
0 4 1 future Lio/netty/util/concurrent/Future;
MethodParameters:
Name Flags
future
public void addAll(io.netty.util.concurrent.Promise[]);
descriptor: ([Lio/netty/util/concurrent/Promise;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.util.concurrent.PromiseCombiner.addAll:([Lio/netty/util/concurrent/Future;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseCombiner;
0 2 1 promises [Lio/netty/util/concurrent/Promise;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
promises
public void addAll(io.netty.util.concurrent.Future[]);
descriptor: ([Lio/netty/util/concurrent/Future;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 4
StackMap locals: io.netty.util.concurrent.PromiseCombiner io.netty.util.concurrent.Future[] top int int io.netty.util.concurrent.Future[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
aload 2
invokevirtual io.netty.util.concurrent.PromiseCombiner.add:(Lio/netty/util/concurrent/Future;)V
end local 2 3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
iload 4
if_icmplt 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/util/concurrent/PromiseCombiner;
0 6 1 futures [Lio/netty/util/concurrent/Future;
2 3 2 future Lio/netty/util/concurrent/Future;
MethodParameters:
Name Flags
futures
public void finish(io.netty.util.concurrent.Promise<java.lang.Void>);
descriptor: (Lio/netty/util/concurrent/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.util.concurrent.PromiseCombiner.doneAdding:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already finished"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.netty.util.concurrent.PromiseCombiner.doneAdding:Z
3: aload 0
aload 1
ldc "aggregatePromise"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.util.concurrent.Promise
putfield io.netty.util.concurrent.PromiseCombiner.aggregatePromise:Lio/netty/util/concurrent/Promise;
4: aload 0
getfield io.netty.util.concurrent.PromiseCombiner.doneCount:I
aload 0
getfield io.netty.util.concurrent.PromiseCombiner.expectedCount:I
if_icmpne 6
5: aload 0
invokevirtual io.netty.util.concurrent.PromiseCombiner.tryPromise:()Z
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/util/concurrent/PromiseCombiner;
0 7 1 aggregatePromise Lio/netty/util/concurrent/Promise<Ljava/lang/Void;>;
Signature: (Lio/netty/util/concurrent/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
aggregatePromise
private boolean tryPromise();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.PromiseCombiner.cause:Ljava/lang/Throwable;
ifnonnull 1
aload 0
getfield io.netty.util.concurrent.PromiseCombiner.aggregatePromise:Lio/netty/util/concurrent/Promise;
aconst_null
invokeinterface io.netty.util.concurrent.Promise.trySuccess:(Ljava/lang/Object;)Z
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield io.netty.util.concurrent.PromiseCombiner.aggregatePromise:Lio/netty/util/concurrent/Promise;
aload 0
getfield io.netty.util.concurrent.PromiseCombiner.cause:Ljava/lang/Throwable;
invokeinterface io.netty.util.concurrent.Promise.tryFailure:(Ljava/lang/Throwable;)Z
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/concurrent/PromiseCombiner;
private void checkAddAllowed();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.PromiseCombiner.doneAdding:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Adding promises is not allowed after finished adding"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/concurrent/PromiseCombiner;
}
SourceFile: "PromiseCombiner.java"
NestMembers:
io.netty.util.concurrent.PromiseCombiner$1
InnerClasses:
io.netty.util.concurrent.PromiseCombiner$1