class io.netty.util.concurrent.PromiseTask<V> extends io.netty.util.concurrent.DefaultPromise<V> implements java.util.concurrent.RunnableFuture<V>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.netty.util.concurrent.PromiseTask
super_class: io.netty.util.concurrent.DefaultPromise
{
protected final java.util.concurrent.Callable<V> task;
descriptor: Ljava/util/concurrent/Callable;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/concurrent/Callable<TV;>;
static <T> java.util.concurrent.Callable<T> toCallable(java.lang.Runnable, T);
descriptor: (Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new io.netty.util.concurrent.PromiseTask$RunnableAdapter
dup
aload 0
aload 1
invokespecial io.netty.util.concurrent.PromiseTask$RunnableAdapter.<init>:(Ljava/lang/Runnable;Ljava/lang/Object;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runnable Ljava/lang/Runnable;
0 1 1 result TT;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Runnable;TT;)Ljava/util/concurrent/Callable<TT;>;
MethodParameters:
Name Flags
runnable
result
void <init>(io.netty.util.concurrent.EventExecutor, java.lang.Runnable, );
descriptor: (Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Runnable;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokestatic io.netty.util.concurrent.PromiseTask.toCallable:(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;
invokespecial io.netty.util.concurrent.PromiseTask.<init>:(Lio/netty/util/concurrent/EventExecutor;Ljava/util/concurrent/Callable;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 2 1 executor Lio/netty/util/concurrent/EventExecutor;
0 2 2 runnable Ljava/lang/Runnable;
0 2 3 result TV;
Signature: (Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Runnable;TV;)V
MethodParameters:
Name Flags
executor
runnable
result
void <init>(io.netty.util.concurrent.EventExecutor, java.util.concurrent.Callable<V>);
descriptor: (Lio/netty/util/concurrent/EventExecutor;Ljava/util/concurrent/Callable;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial io.netty.util.concurrent.DefaultPromise.<init>:(Lio/netty/util/concurrent/EventExecutor;)V
1: aload 0
aload 2
putfield io.netty.util.concurrent.PromiseTask.task:Ljava/util/concurrent/Callable;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 3 1 executor Lio/netty/util/concurrent/EventExecutor;
0 3 2 callable Ljava/util/concurrent/Callable<TV;>;
Signature: (Lio/netty/util/concurrent/EventExecutor;Ljava/util/concurrent/Callable<TV;>;)V
MethodParameters:
Name Flags
executor
callable
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 2 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.util.concurrent.PromiseTask.setUncancellableInternal:()Z
ifeq 6
1: aload 0
getfield io.netty.util.concurrent.PromiseTask.task:Ljava/util/concurrent/Callable;
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
astore 1
start local 1 2: aload 0
aload 1
invokevirtual io.netty.util.concurrent.PromiseTask.setSuccessInternal:(Ljava/lang/Object;)Lio/netty/util/concurrent/Promise;
pop
end local 1 3: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
4: astore 1
start local 1 5: aload 0
aload 1
invokevirtual io.netty.util.concurrent.PromiseTask.setFailureInternal:(Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise;
pop
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
2 3 1 result TV;
5 6 1 e Ljava/lang/Throwable;
Exception table:
from to target type
0 3 4 Class java.lang.Throwable
public final io.netty.util.concurrent.Promise<V> setFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 cause Ljava/lang/Throwable;
Signature: (Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise<TV;>;
MethodParameters:
Name Flags
cause
protected final io.netty.util.concurrent.Promise<V> setFailureInternal(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.util.concurrent.DefaultPromise.setFailure:(Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 2 1 cause Ljava/lang/Throwable;
Signature: (Ljava/lang/Throwable;)Lio/netty/util/concurrent/Promise<TV;>;
MethodParameters:
Name Flags
cause
public final boolean tryFailure(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
protected final boolean tryFailureInternal(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.util.concurrent.DefaultPromise.tryFailure:(Ljava/lang/Throwable;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
public final io.netty.util.concurrent.Promise<V> setSuccess(V);
descriptor: (Ljava/lang/Object;)Lio/netty/util/concurrent/Promise;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 result TV;
Signature: (TV;)Lio/netty/util/concurrent/Promise<TV;>;
MethodParameters:
Name Flags
result
protected final io.netty.util.concurrent.Promise<V> setSuccessInternal(V);
descriptor: (Ljava/lang/Object;)Lio/netty/util/concurrent/Promise;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.util.concurrent.DefaultPromise.setSuccess:(Ljava/lang/Object;)Lio/netty/util/concurrent/Promise;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 2 1 result TV;
Signature: (TV;)Lio/netty/util/concurrent/Promise<TV;>;
MethodParameters:
Name Flags
result
public final boolean trySuccess();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 result TV;
Signature: (TV;)Z
MethodParameters:
Name Flags
result
protected final boolean trySuccessInternal();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.util.concurrent.DefaultPromise.trySuccess:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
0 1 1 result TV;
Signature: (TV;)Z
MethodParameters:
Name Flags
result
public final boolean setUncancellable();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
protected final boolean setUncancellableInternal();
descriptor: ()Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.util.concurrent.DefaultPromise.setUncancellable:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
protected java.lang.StringBuilder toStringBuilder();
descriptor: ()Ljava/lang/StringBuilder;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial io.netty.util.concurrent.DefaultPromise.toStringBuilder:()Ljava/lang/StringBuilder;
astore 1
start local 1 1: aload 1
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
bipush 44
invokevirtual java.lang.StringBuilder.setCharAt:(IC)V
2: aload 1
ldc " task: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: aload 0
getfield io.netty.util.concurrent.PromiseTask.task:Ljava/util/concurrent/Callable;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
4: bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/util/concurrent/PromiseTask<TV;>;
1 6 1 buf Ljava/lang/StringBuilder;
}
Signature: <V:Ljava/lang/Object;>Lio/netty/util/concurrent/DefaultPromise<TV;>;Ljava/util/concurrent/RunnableFuture<TV;>;
SourceFile: "PromiseTask.java"
NestMembers:
io.netty.util.concurrent.PromiseTask$RunnableAdapter
InnerClasses:
private final RunnableAdapter = io.netty.util.concurrent.PromiseTask$RunnableAdapter of io.netty.util.concurrent.PromiseTask