public interface io.vertx.core.Promise<T> extends io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: io.vertx.core.Promise
super_class: java.lang.Object
{
public static <T> io.vertx.core.Promise<T> promise();
descriptor: ()Lio/vertx/core/Promise;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.vertx.core.impl.future.PromiseImpl
dup
invokespecial io.vertx.core.impl.future.PromiseImpl.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <T:Ljava/lang/Object;>()Lio/vertx/core/Promise<TT;>;
public void handle(io.vertx.core.AsyncResult<T>);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.core.AsyncResult.succeeded:()Z
ifeq 3
1: aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.result:()Ljava/lang/Object;
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/Promise<TT;>;
0 5 1 asyncResult Lio/vertx/core/AsyncResult<TT;>;
Signature: (Lio/vertx/core/AsyncResult<TT;>;)V
RuntimeVisibleAnnotations:
io.vertx.codegen.annotations.GenIgnore()
MethodParameters:
Name Flags
asyncResult
public void complete();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface io.vertx.core.Promise.tryComplete:(Ljava/lang/Object;)Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Result is already complete"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/Promise<TT;>;
0 3 1 result TT;
Signature: (TT;)V
MethodParameters:
Name Flags
result
public void complete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.Promise.tryComplete:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Result is already complete"
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/vertx/core/Promise<TT;>;
public void fail(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/Throwable;)Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Result is already complete"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/Promise<TT;>;
0 3 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
public void fail(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/String;)Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Result is already complete"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/Promise<TT;>;
0 3 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public abstract boolean tryComplete();
descriptor: (Ljava/lang/Object;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (TT;)Z
MethodParameters:
Name Flags
result
public boolean tryComplete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokeinterface io.vertx.core.Promise.tryComplete:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/Promise<TT;>;
public abstract boolean tryFail(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
cause
public boolean tryFail(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new io.vertx.core.impl.NoStackTraceThrowable
dup
aload 1
invokespecial io.vertx.core.impl.NoStackTraceThrowable.<init>:(Ljava/lang/String;)V
invokeinterface io.vertx.core.Promise.tryFail:(Ljava/lang/Throwable;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/Promise<TT;>;
0 1 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
public abstract io.vertx.core.Future<T> future();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Lio/vertx/core/Future<TT;>;
RuntimeVisibleAnnotations:
io.vertx.codegen.annotations.CacheReturn()
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.core.AsyncResult
invokeinterface io.vertx.core.Promise.handle:(Lio/vertx/core/AsyncResult;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<TT;>;>;
SourceFile: "Promise.java"
RuntimeVisibleAnnotations:
io.vertx.codegen.annotations.VertxGen()