public class org.eclipse.jetty.util.FutureCallback implements java.util.concurrent.Future<java.lang.Void>, org.eclipse.jetty.util.Callback
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.FutureCallback
super_class: java.lang.Object
{
private static final java.lang.Throwable COMPLETED;
descriptor: Ljava/lang/Throwable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final org.eclipse.jetty.util.FutureCallback SUCCEEDED;
descriptor: Lorg/eclipse/jetty/util/FutureCallback;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean _done;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.CountDownLatch _latch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.Throwable _cause;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.eclipse.jetty.util.ConstantThrowable
dup
invokespecial org.eclipse.jetty.util.ConstantThrowable.<init>:()V
putstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
1: new org.eclipse.jetty.util.FutureCallback
dup
iconst_1
invokespecial org.eclipse.jetty.util.FutureCallback.<init>:(Z)V
putstatic org.eclipse.jetty.util.FutureCallback.SUCCEEDED:Lorg/eclipse/jetty/util/FutureCallback;
return
LocalVariableTable:
Start End Slot Name Signature
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 java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/FutureCallback;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
3: iload 1
ifeq 7
4: aload 0
getstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
putfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
5: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
6: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
7: StackMap locals: org.eclipse.jetty.util.FutureCallback int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/eclipse/jetty/util/FutureCallback;
0 8 1 completed Z
MethodParameters:
Name Flags
completed
public void <init>(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
3: aload 0
aload 1
putfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
4: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.set:(Z)V
5: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/util/FutureCallback;
0 7 1 failed Ljava/lang/Throwable;
MethodParameters:
Name Flags
failed
public void succeeded();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 3
1: aload 0
getstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
putfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
2: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/FutureCallback;
public void failed(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
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 3
1: aload 0
aload 1
putfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
2: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/FutureCallback;
0 4 1 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
cause
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 4
1: aload 0
new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
putfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
2: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/FutureCallback;
0 5 1 mayInterruptIfRunning Z
MethodParameters:
Name Flags
mayInterruptIfRunning
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 6
1: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
2: goto 5
3: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 1
start local 1 4: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 5: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
instanceof java.util.concurrent.CancellationException
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/util/FutureCallback;
4 5 1 e Ljava/lang/InterruptedException;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
public boolean isDone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
ifeq 1
aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.getCount:()J
lconst_0
lcmp
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/FutureCallback;
public java.lang.Void get();
descriptor: ()Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
1: aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
getstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
if_acmpne 3
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
instanceof java.util.concurrent.CancellationException
ifeq 5
4: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
invokevirtual java.util.concurrent.CancellationException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.util.concurrent.CancellationException
athrow
5: StackMap locals:
StackMap stack:
new java.util.concurrent.ExecutionException
dup
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/FutureCallback;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
public java.lang.Void get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.eclipse.jetty.util.FutureCallback._latch:Ljava/util/concurrent/CountDownLatch;
lload 1
aload 3
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
ifne 2
1: new java.util.concurrent.TimeoutException
dup
invokespecial java.util.concurrent.TimeoutException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
getstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
if_acmpne 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
instanceof java.util.concurrent.TimeoutException
ifeq 6
5: aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
checkcast java.util.concurrent.TimeoutException
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
instanceof java.util.concurrent.CancellationException
ifeq 8
7: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
invokevirtual java.util.concurrent.CancellationException.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.util.concurrent.CancellationException
athrow
8: StackMap locals:
StackMap stack:
new java.util.concurrent.ExecutionException
dup
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/util/FutureCallback;
0 9 1 timeout J
0 9 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
MethodParameters:
Name Flags
timeout
unit
public static void rethrow(java.util.concurrent.ExecutionException);
descriptor: (Ljava/util/concurrent/ExecutionException;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
astore 1
start local 1 1: aload 1
instanceof java.io.IOException
ifeq 3
2: aload 1
checkcast java.io.IOException
athrow
3: StackMap locals: java.lang.Throwable
StackMap stack:
aload 1
instanceof java.lang.Error
ifeq 5
4: aload 1
checkcast java.lang.Error
athrow
5: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.RuntimeException
ifeq 7
6: aload 1
checkcast java.lang.RuntimeException
athrow
7: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 e Ljava/util/concurrent/ExecutionException;
1 8 1 cause Ljava/lang/Throwable;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
e
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: ldc "FutureCallback@%x{%b,%b}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Object.hashCode:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield org.eclipse.jetty.util.FutureCallback._done:Ljava/util/concurrent/atomic/AtomicBoolean;
invokevirtual java.util.concurrent.atomic.AtomicBoolean.get:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_2
aload 0
getfield org.eclipse.jetty.util.FutureCallback._cause:Ljava/lang/Throwable;
getstatic org.eclipse.jetty.util.FutureCallback.COMPLETED:Ljava/lang/Throwable;
if_acmpne 1
iconst_1
goto 2
StackMap locals: org.eclipse.jetty.util.FutureCallback
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
1: iconst_0
StackMap locals: org.eclipse.jetty.util.FutureCallback
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int int
2: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/util/FutureCallback;
public java.lang.Object get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=3
0: aload 0
lload 1
aload 3
invokevirtual org.eclipse.jetty.util.FutureCallback.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
public java.lang.Object get();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.eclipse.jetty.util.FutureCallback.get:()Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Future<Ljava/lang/Void;>;Lorg/eclipse/jetty/util/Callback;
SourceFile: "FutureCallback.java"