public final class org.glassfish.grizzly.impl.ReadyFutureImpl<R> implements org.glassfish.grizzly.impl.FutureImpl<R>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.impl.ReadyFutureImpl
super_class: java.lang.Object
{
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.impl.ReadyFutureImpl> CACHE_IDX;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/impl/ReadyFutureImpl;>;
protected R result;
descriptor: Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Signature: TR;
private java.lang.Throwable failure;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
private boolean isCancelled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
iconst_4
invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
putstatic org.glassfish.grizzly.impl.ReadyFutureImpl.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
return
LocalVariableTable:
Start End Slot Name Signature
public static <R> org.glassfish.grizzly.impl.ReadyFutureImpl<R> create();
descriptor: ()Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.takeFromCache:()Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
astore 0
start local 0 1: aload 0
ifnull 4
2: aload 0
iconst_1
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
3: aload 0
areturn
4: StackMap locals: org.glassfish.grizzly.impl.ReadyFutureImpl
StackMap stack:
new org.glassfish.grizzly.impl.ReadyFutureImpl
dup
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:()V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 future Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
Signature: <R:Ljava/lang/Object;>()Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
public static <R> org.glassfish.grizzly.impl.ReadyFutureImpl<R> create(R);
descriptor: (Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.takeFromCache:()Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
aload 0
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
3: aload 1
areturn
4: StackMap locals: org.glassfish.grizzly.impl.ReadyFutureImpl
StackMap stack:
new org.glassfish.grizzly.impl.ReadyFutureImpl
dup
aload 0
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:(Ljava/lang/Object;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 result TR;
1 5 1 future Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
Signature: <R:Ljava/lang/Object;>(TR;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
MethodParameters:
Name Flags
result
public static <R> org.glassfish.grizzly.impl.ReadyFutureImpl<R> create(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.takeFromCache:()Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
aload 0
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
3: aload 1
areturn
4: StackMap locals: org.glassfish.grizzly.impl.ReadyFutureImpl
StackMap stack:
new org.glassfish.grizzly.impl.ReadyFutureImpl
dup
aload 0
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:(Ljava/lang/Throwable;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 failure Ljava/lang/Throwable;
1 5 1 future Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
Signature: <R:Ljava/lang/Object;>(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
MethodParameters:
Name Flags
failure
private static <R> org.glassfish.grizzly.impl.ReadyFutureImpl<R> takeFromCache();
descriptor: ()Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.glassfish.grizzly.impl.ReadyFutureImpl.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.takeFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.impl.ReadyFutureImpl
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <R:Ljava/lang/Object;>()Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
aconst_null
iconst_1
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
private void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
iconst_0
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 2 1 result TR;
Signature: (TR;)V
MethodParameters:
Name Flags
result
private void <init>(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
iconst_0
invokespecial org.glassfish.grizzly.impl.ReadyFutureImpl.<init>:(Ljava/lang/Object;Ljava/lang/Throwable;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 2 1 failure Ljava/lang/Throwable;
MethodParameters:
Name Flags
failure
private void <init>(R, java.lang.Throwable, );
descriptor: (Ljava/lang/Object;Ljava/lang/Throwable;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
2: aload 0
aload 2
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
3: aload 0
iload 3
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 5 1 result TR;
0 5 2 failure Ljava/lang/Throwable;
0 5 3 isCancelled Z
Signature: (TR;Ljava/lang/Throwable;Z)V
MethodParameters:
Name Flags
result
failure
isCancelled
public void addCompletionHandler(org.glassfish.grizzly.CompletionHandler<R>);
descriptor: (Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
ifeq 3
1: aload 1
invokeinterface org.glassfish.grizzly.CompletionHandler.cancelled:()V
2: goto 7
StackMap locals:
StackMap stack:
3: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
ifnull 6
4: aload 1
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 8 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<TR;>;
Signature: (Lorg/glassfish/grizzly/CompletionHandler<TR;>;)V
MethodParameters:
Name Flags
completionHandler final
public R getResult();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
Signature: ()TR;
public void setResult();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
ldc "Can not be reset on ReadyFutureImpl"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 1 1 result TR;
Signature: (TR;)V
MethodParameters:
Name Flags
result
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 1 1 mayInterruptIfRunning Z
MethodParameters:
Name Flags
mayInterruptIfRunning
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
public boolean isDone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
public R get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
ifeq 2
1: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
ifnull 4
3: new java.util.concurrent.ExecutionException
dup
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Signature: ()TR;
public R get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
ifeq 2
1: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
ifnull 4
3: new java.util.concurrent.ExecutionException
dup
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
ifnull 6
5: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
new java.util.concurrent.TimeoutException
dup
invokespecial java.util.concurrent.TimeoutException.<init>:()V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 7 1 timeout J
0 7 3 unit Ljava/util/concurrent/TimeUnit;
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Signature: (JLjava/util/concurrent/TimeUnit;)TR;
MethodParameters:
Name Flags
timeout
unit
public void failure(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: new java.lang.IllegalStateException
dup
ldc "Can not be reset on ReadyFutureImpl"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 1 1 failure Ljava/lang/Throwable;
MethodParameters:
Name Flags
failure
public void result();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
ldc "Can not be reset on ReadyFutureImpl"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 1 1 result TR;
Signature: (TR;)V
MethodParameters:
Name Flags
result
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
1: aload 0
aconst_null
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.failure:Ljava/lang/Throwable;
2: aload 0
iconst_0
putfield org.glassfish.grizzly.impl.ReadyFutureImpl.isCancelled:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
public void markForRecycle(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual org.glassfish.grizzly.impl.ReadyFutureImpl.recycle:(Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 2 1 recycleResult Z
MethodParameters:
Name Flags
recycleResult
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.glassfish.grizzly.impl.ReadyFutureImpl.recycle:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
public void recycle(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
ifnull 2
aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
instanceof org.glassfish.grizzly.Cacheable
ifeq 2
1: aload 0
getfield org.glassfish.grizzly.impl.ReadyFutureImpl.result:Ljava/lang/Object;
checkcast org.glassfish.grizzly.Cacheable
invokeinterface org.glassfish.grizzly.Cacheable.recycle:()V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.impl.ReadyFutureImpl.reset:()V
3: getstatic org.glassfish.grizzly.impl.ReadyFutureImpl.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
aload 0
invokestatic org.glassfish.grizzly.ThreadCache.putToCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;Ljava/lang/Object;)Z
pop
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/impl/ReadyFutureImpl<TR;>;
0 5 1 recycleResult Z
MethodParameters:
Name Flags
recycleResult
}
Signature: <R:Ljava/lang/Object;>Ljava/lang/Object;Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
SourceFile: "ReadyFutureImpl.java"
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache