public final class io.netty.util.concurrent.UnaryPromiseNotifier<T> implements io.netty.util.concurrent.FutureListener<T>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.util.concurrent.UnaryPromiseNotifier
super_class: java.lang.Object
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.netty.util.concurrent.Promise<? super T> promise;
descriptor: Lio/netty/util/concurrent/Promise;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/Promise<-TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/util/concurrent/UnaryPromiseNotifier;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.util.concurrent.UnaryPromiseNotifier.logger:Lio/netty/util/internal/logging/InternalLogger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.netty.util.concurrent.Promise<? super T>);
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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ldc "promise"
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.UnaryPromiseNotifier.promise:Lio/netty/util/concurrent/Promise;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/concurrent/UnaryPromiseNotifier<TT;>;
0 3 1 promise Lio/netty/util/concurrent/Promise<-TT;>;
Signature: (Lio/netty/util/concurrent/Promise<-TT;>;)V
MethodParameters:
Name Flags
promise
public void operationComplete(io.netty.util.concurrent.Future<T>);
descriptor: (Lio/netty/util/concurrent/Future;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield io.netty.util.concurrent.UnaryPromiseNotifier.promise:Lio/netty/util/concurrent/Promise;
invokestatic io.netty.util.concurrent.UnaryPromiseNotifier.cascadeTo:(Lio/netty/util/concurrent/Future;Lio/netty/util/concurrent/Promise;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/UnaryPromiseNotifier<TT;>;
0 2 1 future Lio/netty/util/concurrent/Future<TT;>;
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/util/concurrent/Future<TT;>;)V
MethodParameters:
Name Flags
future
public static <X> void cascadeTo(io.netty.util.concurrent.Future<X>, io.netty.util.concurrent.Promise<? super X>);
descriptor: (Lio/netty/util/concurrent/Future;Lio/netty/util/concurrent/Promise;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface io.netty.util.concurrent.Future.isSuccess:()Z
ifeq 4
1: aload 1
aload 0
invokeinterface io.netty.util.concurrent.Future.getNow:()Ljava/lang/Object;
invokeinterface io.netty.util.concurrent.Promise.trySuccess:(Ljava/lang/Object;)Z
ifne 12
2: getstatic io.netty.util.concurrent.UnaryPromiseNotifier.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to mark a promise as success because it is done already: {}"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
3: goto 12
StackMap locals:
StackMap stack:
4: aload 0
invokeinterface io.netty.util.concurrent.Future.isCancelled:()Z
ifeq 8
5: aload 1
iconst_0
invokeinterface io.netty.util.concurrent.Promise.cancel:(Z)Z
ifne 12
6: getstatic io.netty.util.concurrent.UnaryPromiseNotifier.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to cancel a promise because it is done already: {}"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
7: goto 12
8: StackMap locals:
StackMap stack:
aload 1
aload 0
invokeinterface io.netty.util.concurrent.Future.cause:()Ljava/lang/Throwable;
invokeinterface io.netty.util.concurrent.Promise.tryFailure:(Ljava/lang/Throwable;)Z
ifne 12
9: getstatic io.netty.util.concurrent.UnaryPromiseNotifier.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to mark a promise as failure because it's done already: {}"
aload 1
10: aload 0
invokeinterface io.netty.util.concurrent.Future.cause:()Ljava/lang/Throwable;
11: invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 completedFuture Lio/netty/util/concurrent/Future<TX;>;
0 13 1 promise Lio/netty/util/concurrent/Promise<-TX;>;
Signature: <X:Ljava/lang/Object;>(Lio/netty/util/concurrent/Future<TX;>;Lio/netty/util/concurrent/Promise<-TX;>;)V
MethodParameters:
Name Flags
completedFuture
promise
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/netty/util/concurrent/FutureListener<TT;>;
SourceFile: "UnaryPromiseNotifier.java"