public class org.glassfish.grizzly.utils.Futures
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.utils.Futures
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/Futures;
public static <R> org.glassfish.grizzly.impl.FutureImpl<R> createSafeFuture();
descriptor: ()Lorg/glassfish/grizzly/impl/FutureImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <R:Ljava/lang/Object;>()Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
public static <R> org.glassfish.grizzly.impl.FutureImpl<R> createUnsafeFuture();
descriptor: ()Lorg/glassfish/grizzly/impl/FutureImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic org.glassfish.grizzly.impl.UnsafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/UnsafeFutureImpl;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: <R:Ljava/lang/Object;>()Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
public static <R> org.glassfish.grizzly.GrizzlyFuture<R> createReadyFuture(R);
descriptor: (Ljava/lang/Object;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 result TR;
Signature: <R:Ljava/lang/Object;>(TR;)Lorg/glassfish/grizzly/GrizzlyFuture<TR;>;
MethodParameters:
Name Flags
result final
public static <R> org.glassfish.grizzly.GrizzlyFuture<R> createReadyFuture(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 error Ljava/lang/Throwable;
Signature: <R:Ljava/lang/Object;>(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/GrizzlyFuture<TR;>;
MethodParameters:
Name Flags
error final
public static <R> void notifyResult(org.glassfish.grizzly.impl.FutureImpl<R>, org.glassfish.grizzly.CompletionHandler<R>, );
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 2
1: aload 1
aload 2
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
ifnull 4
3: aload 0
aload 2
invokeinterface org.glassfish.grizzly.impl.FutureImpl.result:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
0 5 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<TR;>;
0 5 2 result TR;
Signature: <R:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;Lorg/glassfish/grizzly/CompletionHandler<TR;>;TR;)V
MethodParameters:
Name Flags
future final
completionHandler final
result final
public static <R> void notifyFailure(org.glassfish.grizzly.impl.FutureImpl<R>, org.glassfish.grizzly.CompletionHandler, java.lang.Throwable);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 2
1: aload 1
aload 2
invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 0
ifnull 4
3: aload 0
aload 2
invokeinterface org.glassfish.grizzly.impl.FutureImpl.failure:(Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
0 5 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler;
0 5 2 error Ljava/lang/Throwable;
Signature: <R:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
future final
completionHandler final
error final
public static <R> void notifyCancel(org.glassfish.grizzly.impl.FutureImpl<R>, org.glassfish.grizzly.CompletionHandler);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 1
invokeinterface org.glassfish.grizzly.CompletionHandler.cancelled:()V
2: StackMap locals:
StackMap stack:
aload 0
ifnull 4
3: aload 0
iconst_0
invokeinterface org.glassfish.grizzly.impl.FutureImpl.cancel:(Z)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
0 5 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler;
Signature: <R:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;Lorg/glassfish/grizzly/CompletionHandler;)V
MethodParameters:
Name Flags
future final
completionHandler final
public static <R> org.glassfish.grizzly.CompletionHandler<R> toCompletionHandler(org.glassfish.grizzly.impl.FutureImpl<R>);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;)Lorg/glassfish/grizzly/CompletionHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler
dup
aload 0
invokespecial org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
Signature: <R:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;)Lorg/glassfish/grizzly/CompletionHandler<TR;>;
MethodParameters:
Name Flags
future final
public static <R> org.glassfish.grizzly.CompletionHandler<R> toCompletionHandler(org.glassfish.grizzly.impl.FutureImpl<R>, org.glassfish.grizzly.CompletionHandler<R>);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;)Lorg/glassfish/grizzly/CompletionHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.glassfish.grizzly.utils.CompletionHandlerAdapter
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.utils.CompletionHandlerAdapter.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;
0 1 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<TR;>;
Signature: <R:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TR;>;Lorg/glassfish/grizzly/CompletionHandler<TR;>;)Lorg/glassfish/grizzly/CompletionHandler<TR;>;
MethodParameters:
Name Flags
future final
completionHandler final
public static <A, B> org.glassfish.grizzly.CompletionHandler<B> toAdaptedCompletionHandler(org.glassfish.grizzly.impl.FutureImpl<A>, org.glassfish.grizzly.utils.GenericAdapter<B, A>);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/utils/GenericAdapter;)Lorg/glassfish/grizzly/CompletionHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokestatic org.glassfish.grizzly.utils.Futures.toAdaptedCompletionHandler:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/utils/GenericAdapter;)Lorg/glassfish/grizzly/CompletionHandler;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TA;>;
0 1 1 adapter Lorg/glassfish/grizzly/utils/GenericAdapter<TB;TA;>;
Signature: <A:Ljava/lang/Object;B:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TA;>;Lorg/glassfish/grizzly/utils/GenericAdapter<TB;TA;>;)Lorg/glassfish/grizzly/CompletionHandler<TB;>;
MethodParameters:
Name Flags
future final
adapter final
public static <A, B> org.glassfish.grizzly.CompletionHandler<B> toAdaptedCompletionHandler(org.glassfish.grizzly.impl.FutureImpl<A>, org.glassfish.grizzly.CompletionHandler<A>, org.glassfish.grizzly.utils.GenericAdapter<B, A>);
descriptor: (Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/utils/GenericAdapter;)Lorg/glassfish/grizzly/CompletionHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.glassfish.grizzly.utils.CompletionHandlerAdapter
dup
aload 0
aload 1
aload 2
invokespecial org.glassfish.grizzly.utils.CompletionHandlerAdapter.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/utils/GenericAdapter;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 future Lorg/glassfish/grizzly/impl/FutureImpl<TA;>;
0 1 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<TA;>;
0 1 2 adapter Lorg/glassfish/grizzly/utils/GenericAdapter<TB;TA;>;
Signature: <A:Ljava/lang/Object;B:Ljava/lang/Object;>(Lorg/glassfish/grizzly/impl/FutureImpl<TA;>;Lorg/glassfish/grizzly/CompletionHandler<TA;>;Lorg/glassfish/grizzly/utils/GenericAdapter<TB;TA;>;)Lorg/glassfish/grizzly/CompletionHandler<TB;>;
MethodParameters:
Name Flags
future final
completionHandler final
adapter final
}
SourceFile: "Futures.java"
NestMembers:
org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler
InnerClasses:
private final FutureToCompletionHandler = org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler of org.glassfish.grizzly.utils.Futures