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 // org.glassfish.grizzly.utils.Futures this
         0: .line 34
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.glassfish.grizzly.utils.Futures this
      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: .line 42
            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: .line 51
            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 // java.lang.Object result
         0: .line 61
            aload 0 /* result */
            invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Object;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
            areturn
        end local 0 // java.lang.Object result
      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 // java.lang.Throwable error
         0: .line 71
            aload 0 /* error */
            invokestatic org.glassfish.grizzly.impl.ReadyFutureImpl.create:(Ljava/lang/Throwable;)Lorg/glassfish/grizzly/impl/ReadyFutureImpl;
            areturn
        end local 0 // java.lang.Throwable error
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        start local 2 // java.lang.Object result
         0: .line 85
            aload 1 /* completionHandler */
            ifnull 2
         1: .line 86
            aload 1 /* completionHandler */
            aload 2 /* result */
            invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
         2: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* future */
            ifnull 4
         3: .line 90
            aload 0 /* future */
            aload 2 /* result */
            invokeinterface org.glassfish.grizzly.impl.FutureImpl.result:(Ljava/lang/Object;)V
         4: .line 92
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.Object result
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        start local 2 // java.lang.Throwable error
         0: .line 104
            aload 1 /* completionHandler */
            ifnull 2
         1: .line 105
            aload 1 /* completionHandler */
            aload 2 /* error */
            invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
         2: .line 108
      StackMap locals:
      StackMap stack:
            aload 0 /* future */
            ifnull 4
         3: .line 109
            aload 0 /* future */
            aload 2 /* error */
            invokeinterface org.glassfish.grizzly.impl.FutureImpl.failure:(Ljava/lang/Throwable;)V
         4: .line 111
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.Throwable error
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 122
            aload 1 /* completionHandler */
            ifnull 2
         1: .line 123
            aload 1 /* completionHandler */
            invokeinterface org.glassfish.grizzly.CompletionHandler.cancelled:()V
         2: .line 126
      StackMap locals:
      StackMap stack:
            aload 0 /* future */
            ifnull 4
         3: .line 127
            aload 0 /* future */
            iconst_0
            invokeinterface org.glassfish.grizzly.impl.FutureImpl.cancel:(Z)Z
            pop
         4: .line 129
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
         0: .line 142
            new org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler
            dup
            aload 0 /* future */
            invokespecial org.glassfish.grizzly.utils.Futures$FutureToCompletionHandler.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;)V
            areturn
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 161
            new org.glassfish.grizzly.utils.CompletionHandlerAdapter
            dup
            aload 0 /* future */
            aload 1 /* completionHandler */
            invokespecial org.glassfish.grizzly.utils.CompletionHandlerAdapter.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;)V
            areturn
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.utils.GenericAdapter adapter
         0: .line 178
            aload 0 /* future */
            aconst_null
            aload 1 /* adapter */
            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 // org.glassfish.grizzly.utils.GenericAdapter adapter
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      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 // org.glassfish.grizzly.impl.FutureImpl future
        start local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        start local 2 // org.glassfish.grizzly.utils.GenericAdapter adapter
         0: .line 198
            new org.glassfish.grizzly.utils.CompletionHandlerAdapter
            dup
         1: .line 199
            aload 0 /* future */
            aload 1 /* completionHandler */
            aload 2 /* adapter */
         2: .line 198
            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 // org.glassfish.grizzly.utils.GenericAdapter adapter
        end local 1 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 0 // org.glassfish.grizzly.impl.FutureImpl future
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    3     0             future  Lorg/glassfish/grizzly/impl/FutureImpl<TA;>;
            0    3     1  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<TA;>;
            0    3     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