public class io.vertx.core.impl.CloseFuture implements io.vertx.core.Future<java.lang.Void>, io.vertx.core.Closeable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.CloseFuture
super_class: java.lang.Object
{
private final io.vertx.core.Promise<java.lang.Void> promise;
descriptor: Lio/vertx/core/Promise;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/vertx/core/Promise<Ljava/lang/Void;>;
private io.vertx.core.Closeable resource;
descriptor: Lio/vertx/core/Closeable;
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
putfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/CloseFuture;
public void <init>(io.vertx.core.Closeable);
descriptor: (Lio/vertx/core/Closeable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic io.vertx.core.Promise.promise:()Lio/vertx/core/Promise;
putfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
2: aload 0
aload 1
putfield io.vertx.core.impl.CloseFuture.resource:Lio/vertx/core/Closeable;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/CloseFuture;
0 4 1 resource Lio/vertx/core/Closeable;
MethodParameters:
Name Flags
resource
public synchronized void init(io.vertx.core.Closeable);
descriptor: (Lio/vertx/core/Closeable;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.closed:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
invokespecial java.lang.IllegalStateException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.vertx.core.impl.CloseFuture.resource:Lio/vertx/core/Closeable;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/CloseFuture;
0 4 1 closeable Lio/vertx/core/Closeable;
MethodParameters:
Name Flags
closeable
public void close(io.vertx.core.Promise<java.lang.Void>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 4
monitorenter
1: aload 0
getfield io.vertx.core.impl.CloseFuture.closed:Z
ifeq 2
iconst_0
goto 3
StackMap locals: io.vertx.core.impl.CloseFuture io.vertx.core.Promise top top io.vertx.core.impl.CloseFuture
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: istore 2
start local 2 4: aload 0
getfield io.vertx.core.impl.CloseFuture.resource:Lio/vertx/core/Closeable;
astore 3
start local 3 5: aload 0
iconst_1
putfield io.vertx.core.impl.CloseFuture.closed:Z
6: aload 4
monitorexit
7: goto 10
end local 3 end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 4
monitorexit
9: athrow
start local 2 start local 3 10: StackMap locals: io.vertx.core.impl.CloseFuture io.vertx.core.Promise int io.vertx.core.Closeable
StackMap stack:
aload 3
ifnonnull 13
11: aload 1
ldc "Close future not initialized"
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/String;)V
12: goto 18
StackMap locals:
StackMap stack:
13: iload 2
ifeq 17
14: aload 3
aload 1
invokeinterface io.vertx.core.Closeable.close:(Lio/vertx/core/Promise;)V
15: aload 1
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
16: goto 18
17: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/vertx/core/impl/CloseFuture;
0 19 1 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
4 8 2 close Z
10 19 2 close Z
5 8 3 resource Lio/vertx/core/Closeable;
10 19 3 resource Lio/vertx/core/Closeable;
Exception table:
from to target type
1 7 8 any
8 9 8 any
Signature: (Lio/vertx/core/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
promise
public synchronized boolean isClosed();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.closed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public boolean isComplete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.isComplete:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public io.vertx.core.Future<java.lang.Void> onComplete(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/CloseFuture;
0 2 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)Lio/vertx/core/Future<Ljava/lang/Void;>;
MethodParameters:
Name Flags
handler
public java.lang.Void result();
descriptor: ()Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.result:()Ljava/lang/Object;
checkcast java.lang.Void
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public java.lang.Throwable cause();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.cause:()Ljava/lang/Throwable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public boolean succeeded();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.succeeded:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public boolean failed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
invokeinterface io.vertx.core.Future.failed:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
public <U> io.vertx.core.Future<U> compose(java.util.function.Function<java.lang.Void, io.vertx.core.Future<U>>, java.util.function.Function<java.lang.Throwable, io.vertx.core.Future<U>>);
descriptor: (Ljava/util/function/Function;Ljava/util/function/Function;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
aload 2
invokeinterface io.vertx.core.Future.compose:(Ljava/util/function/Function;Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 successMapper Ljava/util/function/Function<Ljava/lang/Void;Lio/vertx/core/Future<TU;>;>;
0 1 2 failureMapper Ljava/util/function/Function<Ljava/lang/Throwable;Lio/vertx/core/Future<TU;>;>;
Signature: <U:Ljava/lang/Object;>(Ljava/util/function/Function<Ljava/lang/Void;Lio/vertx/core/Future<TU;>;>;Ljava/util/function/Function<Ljava/lang/Throwable;Lio/vertx/core/Future<TU;>;>;)Lio/vertx/core/Future<TU;>;
MethodParameters:
Name Flags
successMapper
failureMapper
public <U> io.vertx.core.Future<U> eventually(java.util.function.Function<java.lang.Void, io.vertx.core.Future<U>>);
descriptor: (Ljava/util/function/Function;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.eventually:(Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 mapper Ljava/util/function/Function<Ljava/lang/Void;Lio/vertx/core/Future<TU;>;>;
Signature: <U:Ljava/lang/Object;>(Ljava/util/function/Function<Ljava/lang/Void;Lio/vertx/core/Future<TU;>;>;)Lio/vertx/core/Future<TU;>;
MethodParameters:
Name Flags
mapper
public <U> io.vertx.core.Future<U> map(java.util.function.Function<java.lang.Void, U>);
descriptor: (Ljava/util/function/Function;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.map:(Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 mapper Ljava/util/function/Function<Ljava/lang/Void;TU;>;
Signature: <U:Ljava/lang/Object;>(Ljava/util/function/Function<Ljava/lang/Void;TU;>;)Lio/vertx/core/Future<TU;>;
MethodParameters:
Name Flags
mapper
public <V> io.vertx.core.Future<V> map(V);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.map:(Ljava/lang/Object;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 value TV;
Signature: <V:Ljava/lang/Object;>(TV;)Lio/vertx/core/Future<TV;>;
MethodParameters:
Name Flags
value
public io.vertx.core.Future<java.lang.Void> otherwise(java.util.function.Function<java.lang.Throwable, java.lang.Void>);
descriptor: (Ljava/util/function/Function;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.otherwise:(Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 mapper Ljava/util/function/Function<Ljava/lang/Throwable;Ljava/lang/Void;>;
Signature: (Ljava/util/function/Function<Ljava/lang/Throwable;Ljava/lang/Void;>;)Lio/vertx/core/Future<Ljava/lang/Void;>;
MethodParameters:
Name Flags
mapper
public io.vertx.core.Future<java.lang.Void> otherwise(java.lang.Void);
descriptor: (Ljava/lang/Void;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.CloseFuture.promise:Lio/vertx/core/Promise;
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.otherwise:(Ljava/lang/Object;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/CloseFuture;
0 1 1 value Ljava/lang/Void;
Signature: (Ljava/lang/Void;)Lio/vertx/core/Future<Ljava/lang/Void;>;
MethodParameters:
Name Flags
value
public io.vertx.core.AsyncResult map(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Object
invokevirtual io.vertx.core.impl.CloseFuture.map:(Ljava/lang/Object;)Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.AsyncResult map(java.util.function.Function);
descriptor: (Ljava/util/function/Function;)Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.function.Function
invokevirtual io.vertx.core.impl.CloseFuture.map:(Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.AsyncResult otherwiseEmpty();
descriptor: ()Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokeinterface io.vertx.core.Future.otherwiseEmpty:()Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.Future otherwise(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/Future;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Void
invokevirtual io.vertx.core.impl.CloseFuture.otherwise:(Ljava/lang/Void;)Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.AsyncResult otherwise(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Void
invokevirtual io.vertx.core.impl.CloseFuture.otherwise:(Ljava/lang/Void;)Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.AsyncResult otherwise(java.util.function.Function);
descriptor: (Ljava/util/function/Function;)Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.function.Function
invokevirtual io.vertx.core.impl.CloseFuture.otherwise:(Ljava/util/function/Function;)Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public io.vertx.core.AsyncResult mapEmpty();
descriptor: ()Lio/vertx/core/AsyncResult;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokeinterface io.vertx.core.Future.mapEmpty:()Lio/vertx/core/Future;
areturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object result();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.impl.CloseFuture.result:()Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lio/vertx/core/Future<Ljava/lang/Void;>;Lio/vertx/core/Closeable;
SourceFile: "CloseFuture.java"