public class org.glassfish.grizzly.nio.DefaultSelectorHandler implements org.glassfish.grizzly.nio.SelectorHandler
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.glassfish.grizzly.nio.DefaultSelectorHandler
  super_class: java.lang.Object
{
  private static final long DEFAULT_SELECT_TIMEOUT_MILLIS;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 30000

  private static final java.util.logging.Logger logger;
    descriptor: Ljava/util/logging/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  public static final boolean IS_WORKAROUND_SELECTOR_SPIN;
    descriptor: Z
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL

  protected final long selectTimeout;
    descriptor: J
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  private static final int SPIN_RATE_THRESHOLD;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 2000

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 43
            ldc Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
            putstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.logger:Ljava/util/logging/Logger;
         1: .line 46
            new java.lang.StringBuilder
            dup
            ldc Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            invokevirtual java.lang.Class.getName:()Ljava/lang/String;
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc ".force-selector-spin-detection"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
            ifne 4
         2: .line 47
            ldc "os.name"
            invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
            ldc "linux"
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ifne 4
         3: .line 45
            iconst_0
            goto 5
      StackMap locals:
      StackMap stack:
         4: iconst_1
      StackMap locals:
      StackMap stack: int
         5: putstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.IS_WORKAROUND_SELECTOR_SPIN:Z
         6: .line 57
            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 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
         0: .line 62
            aload 0 /* this */
            ldc 30000
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler.<init>:(JLjava/util/concurrent/TimeUnit;)V
         1: .line 63
            return
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;

  public void <init>(long, java.util.concurrent.TimeUnit);
    descriptor: (JLjava/util/concurrent/TimeUnit;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // long selectTimeout
        start local 3 // java.util.concurrent.TimeUnit timeunit
         0: .line 65
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 66
            aload 0 /* this */
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            lload 1 /* selectTimeout */
            aload 3 /* timeunit */
            invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
            putfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
         2: .line 67
            return
        end local 3 // java.util.concurrent.TimeUnit timeunit
        end local 1 // long selectTimeout
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    3     0           this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    3     1  selectTimeout  J
            0    3     3       timeunit  Ljava/util/concurrent/TimeUnit;
    MethodParameters:
               Name  Flags
      selectTimeout  final
      timeunit       final

  public long getSelectTimeout();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
         0: .line 71
            aload 0 /* this */
            getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
            lreturn
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;

  public boolean preSelect(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 76
            aload 0 /* this */
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTasks:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ireturn
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    1     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    1     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final

  public java.util.Set<java.nio.channels.SelectionKey> select(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Ljava/util/Set;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=5, args_size=2
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 82
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
            astore 2 /* selector */
        start local 2 // java.nio.channels.Selector selector
         1: .line 84
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
            invokeinterface java.util.Queue.isEmpty:()Z
            ifeq 2
            iconst_0
            goto 3
      StackMap locals: java.nio.channels.Selector
      StackMap stack:
         2: iconst_1
         3: .line 83
      StackMap locals:
      StackMap stack: int
            istore 3 /* hasPostponedTasks */
        start local 3 // boolean hasPostponedTasks
         4: .line 89
            iload 3 /* hasPostponedTasks */
            ifne 7
         5: .line 90
            aload 2 /* selector */
            aload 0 /* this */
            getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
            invokevirtual java.nio.channels.Selector.select:(J)I
            pop
         6: .line 91
            goto 8
         7: .line 92
      StackMap locals: int
      StackMap stack:
            aload 2 /* selector */
            invokevirtual java.nio.channels.Selector.selectNow:()I
            pop
         8: .line 95
      StackMap locals:
      StackMap stack:
            aload 2 /* selector */
            invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
            astore 4 /* selectedKeys */
        start local 4 // java.util.Set selectedKeys
         9: .line 97
            getstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.IS_WORKAROUND_SELECTOR_SPIN:Z
            ifeq 15
        10: .line 98
            aload 1 /* selectorRunner */
        11: .line 99
            aload 4 /* selectedKeys */
            invokeinterface java.util.Set.isEmpty:()Z
            ifeq 12
            iload 3 /* hasPostponedTasks */
            ifne 12
            iconst_0
            goto 13
      StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.Selector int java.util.Set
      StackMap stack: org.glassfish.grizzly.nio.SelectorRunner
        12: iconst_1
        13: .line 100
      StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.Selector int java.util.Set
      StackMap stack: org.glassfish.grizzly.nio.SelectorRunner int
            sipush 2000
        14: .line 98
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.checkSelectorSpin:(ZI)V
        15: .line 103
      StackMap locals:
      StackMap stack:
            aload 4 /* selectedKeys */
            areturn
        end local 4 // java.util.Set selectedKeys
        end local 3 // boolean hasPostponedTasks
        end local 2 // java.nio.channels.Selector selector
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   16     0               this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0   16     1     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            1   16     2           selector  Ljava/nio/channels/Selector;
            4   16     3  hasPostponedTasks  Z
            9   16     4       selectedKeys  Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
    MethodParameters:
                Name  Flags
      selectorRunner  final

  public void postSelect(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=0, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 108
            return
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    1     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    1     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final

  public void registerKeyInterest(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectionKey, int);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectionKey key
        start local 3 // int interest
         0: .line 113
            aload 1 /* selectorRunner */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifeq 3
         1: .line 114
            aload 2 /* key */
            iload 3 /* interest */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.registerKey0:(Ljava/nio/channels/SelectionKey;I)V
         2: .line 115
            goto 4
         3: .line 116
      StackMap locals:
      StackMap stack:
            aload 1 /* selectorRunner */
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask
            dup
            aload 2 /* key */
            iload 3 /* interest */
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask.<init>:(Ljava/nio/channels/SelectionKey;I)V
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
         4: .line 118
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int interest
        end local 2 // java.nio.channels.SelectionKey key
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    5     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    5     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    5     2             key  Ljava/nio/channels/SelectionKey;
            0    5     3        interest  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final
      key             final
      interest        final

  private static void registerKey0(java.nio.channels.SelectionKey, int);
    descriptor: (Ljava/nio/channels/SelectionKey;I)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // java.nio.channels.SelectionKey selectionKey
        start local 1 // int interest
         0: .line 121
            aload 0 /* selectionKey */
            invokevirtual java.nio.channels.SelectionKey.isValid:()Z
            ifeq 4
         1: .line 122
            aload 0 /* selectionKey */
            invokevirtual java.nio.channels.SelectionKey.interestOps:()I
            istore 2 /* currentOps */
        start local 2 // int currentOps
         2: .line 123
            iload 2 /* currentOps */
            iload 1 /* interest */
            iand
            iload 1 /* interest */
            if_icmpeq 4
         3: .line 124
            aload 0 /* selectionKey */
            iload 2 /* currentOps */
            iload 1 /* interest */
            ior
            invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
            pop
        end local 2 // int currentOps
         4: .line 127
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int interest
        end local 0 // java.nio.channels.SelectionKey selectionKey
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    5     0  selectionKey  Ljava/nio/channels/SelectionKey;
            0    5     1      interest  I
            2    4     2    currentOps  I
    MethodParameters:
              Name  Flags
      selectionKey  final
      interest      final

  public void deregisterKeyInterest(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectionKey, int);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=4
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectionKey key
        start local 3 // int interest
         0: .line 135
            aload 2 /* key */
            invokevirtual java.nio.channels.SelectionKey.isValid:()Z
            ifeq 4
         1: .line 136
            aload 2 /* key */
            invokevirtual java.nio.channels.SelectionKey.interestOps:()I
            istore 4 /* currentOps */
        start local 4 // int currentOps
         2: .line 137
            iload 4 /* currentOps */
            iload 3 /* interest */
            iand
            ifeq 4
         3: .line 138
            aload 2 /* key */
            iload 4 /* currentOps */
            iload 3 /* interest */
            iconst_m1
            ixor
            iand
            invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
            pop
        end local 4 // int currentOps
         4: .line 141
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int interest
        end local 2 // java.nio.channels.SelectionKey key
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    5     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    5     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    5     2             key  Ljava/nio/channels/SelectionKey;
            0    5     3        interest  I
            2    4     4      currentOps  I
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final
      key             final
      interest        final

  public void registerChannel(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, java.lang.Object);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=7, args_size=5
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectableChannel channel
        start local 3 // int interest
        start local 4 // java.lang.Object attachment
         0: .line 149
            invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
         1: .line 148
            astore 5 /* future */
        start local 5 // org.glassfish.grizzly.impl.FutureImpl future
         2: .line 151
            aload 0 /* this */
            aload 1 /* selectorRunner */
            aload 2 /* channel */
            iload 3 /* interest */
         3: .line 152
            aload 4 /* attachment */
            aload 5 /* future */
            invokestatic org.glassfish.grizzly.utils.Futures.toCompletionHandler:(Lorg/glassfish/grizzly/impl/FutureImpl;)Lorg/glassfish/grizzly/CompletionHandler;
         4: .line 151
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.registerChannelAsync:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
         5: .line 154
            aload 5 /* future */
            aload 0 /* this */
            getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            invokeinterface org.glassfish.grizzly.impl.FutureImpl.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
            pop
         6: .line 155
            goto 9
      StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel int java.lang.Object org.glassfish.grizzly.impl.FutureImpl
      StackMap stack: java.lang.Exception
         7: astore 6 /* e */
        start local 6 // java.lang.Exception e
         8: .line 156
            new java.io.IOException
            dup
            aload 6 /* e */
            invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        end local 6 // java.lang.Exception e
         9: .line 158
      StackMap locals:
      StackMap stack:
            return
        end local 5 // org.glassfish.grizzly.impl.FutureImpl future
        end local 4 // java.lang.Object attachment
        end local 3 // int interest
        end local 2 // java.nio.channels.SelectableChannel channel
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   10     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0   10     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   10     2         channel  Ljava/nio/channels/SelectableChannel;
            0   10     3        interest  I
            0   10     4      attachment  Ljava/lang/Object;
            2   10     5          future  Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
            8    9     6               e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           5     6       7  Class java.lang.Exception
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final
      channel         final
      interest        final
      attachment      final

  public void registerChannelAsync(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, , org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=8, locals=6, args_size=6
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectableChannel channel
        start local 3 // int interest
        start local 4 // java.lang.Object attachment
        start local 5 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 166
            aload 1 /* selectorRunner */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifeq 5
         1: .line 167
            aload 1 /* selectorRunner */
            aload 2 /* channel */
            iload 3 /* interest */
            aload 4 /* attachment */
         2: .line 168
            aload 5 /* completionHandler */
         3: .line 167
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.registerChannel0:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
         4: .line 169
            goto 10
         5: .line 170
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* selectorRunner */
         6: .line 171
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation
            dup
         7: .line 172
            aload 2 /* channel */
            iload 3 /* interest */
            aload 4 /* attachment */
            aload 5 /* completionHandler */
         8: .line 171
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
         9: .line 170
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
        10: .line 174
      StackMap locals:
      StackMap stack:
            return
        end local 5 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 4 // java.lang.Object attachment
        end local 3 // int interest
        end local 2 // java.nio.channels.SelectableChannel channel
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   11     0               this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0   11     1     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   11     2            channel  Ljava/nio/channels/SelectableChannel;
            0   11     3           interest  I
            0   11     4         attachment  Ljava/lang/Object;
            0   11     5  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     
      channel            
      interest           
      attachment         
      completionHandler  

  public void deregisterChannel(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectableChannel channel
         0: .line 182
            invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
         1: .line 181
            astore 3 /* future */
        start local 3 // org.glassfish.grizzly.impl.FutureImpl future
         2: .line 184
            aload 0 /* this */
            aload 1 /* selectorRunner */
            aload 2 /* channel */
         3: .line 185
            aload 3 /* future */
            invokestatic org.glassfish.grizzly.utils.Futures.toCompletionHandler:(Lorg/glassfish/grizzly/impl/FutureImpl;)Lorg/glassfish/grizzly/CompletionHandler;
         4: .line 184
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.deregisterChannelAsync:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
         5: .line 187
            aload 3 /* future */
            aload 0 /* this */
            getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            invokeinterface org.glassfish.grizzly.impl.FutureImpl.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
            pop
         6: .line 188
            goto 9
      StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.impl.FutureImpl
      StackMap stack: java.lang.Exception
         7: astore 4 /* e */
        start local 4 // java.lang.Exception e
         8: .line 189
            new java.io.IOException
            dup
            aload 4 /* e */
            invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        end local 4 // java.lang.Exception e
         9: .line 191
      StackMap locals:
      StackMap stack:
            return
        end local 3 // org.glassfish.grizzly.impl.FutureImpl future
        end local 2 // java.nio.channels.SelectableChannel channel
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   10     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0   10     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   10     2         channel  Ljava/nio/channels/SelectableChannel;
            2   10     3          future  Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
            8    9     4               e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           5     6       7  Class java.lang.Exception
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final
      channel         final

  public void deregisterChannelAsync(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=4
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.nio.channels.SelectableChannel channel
        start local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 198
            aload 1 /* selectorRunner */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifeq 5
         1: .line 199
            aload 1 /* selectorRunner */
            aload 2 /* channel */
         2: .line 200
            aload 3 /* completionHandler */
         3: .line 199
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.deregisterChannel0:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
         4: .line 201
            goto 8
         5: .line 202
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* selectorRunner */
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation
            dup
         6: .line 203
            aload 2 /* channel */
            aload 3 /* completionHandler */
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
         7: .line 202
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
         8: .line 205
      StackMap locals:
      StackMap stack:
            return
        end local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 2 // java.nio.channels.SelectableChannel channel
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    9     0               this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    9     1     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    9     2            channel  Ljava/nio/channels/SelectableChannel;
            0    9     3  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     final
      channel            final
      completionHandler  final

  public void execute(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandler$Task, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.SelectorHandler$Task>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=4
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // org.glassfish.grizzly.nio.SelectorHandler$Task task
        start local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 211
            aload 1 /* selectorRunner */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifeq 9
         1: .line 213
            aload 2 /* task */
            invokeinterface org.glassfish.grizzly.nio.SelectorHandler$Task.run:()Z
            pop
         2: .line 214
            aload 3 /* completionHandler */
            ifnull 12
         3: .line 215
            aload 3 /* completionHandler */
            aload 2 /* task */
            invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
         4: .line 217
            goto 12
      StackMap locals:
      StackMap stack: java.lang.Exception
         5: astore 4 /* e */
        start local 4 // java.lang.Exception e
         6: .line 218
            aload 3 /* completionHandler */
            ifnull 12
         7: .line 219
            aload 3 /* completionHandler */
            aload 4 /* e */
            invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
        end local 4 // java.lang.Exception e
         8: .line 222
            goto 12
         9: .line 223
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* selectorRunner */
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
            dup
            aload 2 /* task */
        10: .line 224
            aload 3 /* completionHandler */
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
        11: .line 223
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
        12: .line 226
      StackMap locals:
      StackMap stack:
            return
        end local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 2 // org.glassfish.grizzly.nio.SelectorHandler$Task task
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   13     0               this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0   13     1     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   13     2               task  Lorg/glassfish/grizzly/nio/SelectorHandler$Task;
            0   13     3  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;
            6    8     4                  e  Ljava/lang/Exception;
      Exception table:
        from    to  target  type
           1     4       5  Class java.lang.Exception
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     final
      task               final
      completionHandler  final

  public void enque(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandler$Task, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.SelectorHandler$Task>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=5, args_size=4
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // org.glassfish.grizzly.nio.SelectorHandler$Task task
        start local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 233
            aload 1 /* selectorRunner */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifeq 5
         1: .line 237
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
         2: .line 236
            astore 4 /* postponedTasks */
        start local 4 // java.util.Queue postponedTasks
         3: .line 238
            aload 4 /* postponedTasks */
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
            dup
            aload 2 /* task */
            aload 3 /* completionHandler */
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
            invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
            pop
        end local 4 // java.util.Queue postponedTasks
         4: .line 240
            goto 8
         5: .line 241
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* selectorRunner */
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
            dup
            aload 2 /* task */
         6: .line 242
            aload 3 /* completionHandler */
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
         7: .line 241
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
         8: .line 244
      StackMap locals:
      StackMap stack:
            return
        end local 3 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 2 // org.glassfish.grizzly.nio.SelectorHandler$Task task
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    9     0               this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    9     1     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    9     2               task  Lorg/glassfish/grizzly/nio/SelectorHandler$Task;
            0    9     3  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;
            3    4     4     postponedTasks  Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     final
      task               final
      completionHandler  final

  private void addPendingTask(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandlerTask);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=3, args_size=3
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // org.glassfish.grizzly.nio.SelectorHandlerTask task
         0: .line 249
            aload 1 /* selectorRunner */
            ifnonnull 3
         1: .line 250
            aload 2 /* task */
            invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.cancel:()V
         2: .line 251
            return
         3: .line 254
      StackMap locals:
      StackMap stack:
            aload 1 /* selectorRunner */
            aload 2 /* task */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
         4: .line 256
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.isStop:()Z
            ifeq 7
         5: .line 257
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPendingTasks:()Ljava/util/Queue;
            aload 2 /* task */
            invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
            ifeq 7
         6: .line 258
            aload 2 /* task */
            invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.cancel:()V
         7: .line 260
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.glassfish.grizzly.nio.SelectorHandlerTask task
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    8     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    8     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    8     2            task  Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
    MethodParameters:
                Name  Flags
      selectorRunner  final
      task            final

  private boolean processPendingTasks(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 265
            aload 0 /* this */
            aload 1 /* selectorRunner */
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.obtainPostponedTasks:()Ljava/util/Queue;
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTaskQueue:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
            ifeq 4
         1: .line 267
            aload 1 /* selectorRunner */
            getfield org.glassfish.grizzly.nio.SelectorRunner.hasPendingTasks:Z
            ifeq 3
         2: .line 268
            aload 0 /* this */
            aload 1 /* selectorRunner */
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPendingTasks:()Ljava/util/Queue;
            invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTaskQueue:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
            ifeq 4
         3: .line 265
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         4: iconst_0
            ireturn
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    5     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    5     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                Name  Flags
      selectorRunner  final

  private boolean processPendingTaskQueue(org.glassfish.grizzly.nio.SelectorRunner, java.util.Queue<org.glassfish.grizzly.nio.SelectorHandlerTask>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=4, args_size=3
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 2 // java.util.Queue selectorHandlerTasks
         0: .line 275
            goto 3
        start local 3 // org.glassfish.grizzly.nio.SelectorHandlerTask selectorHandlerTask
         1: .line 276
      StackMap locals: org.glassfish.grizzly.nio.SelectorHandlerTask
      StackMap stack:
            aload 3 /* selectorHandlerTask */
            aload 1 /* selectorRunner */
            invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.run:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
            ifne 3
         2: .line 277
            iconst_0
            ireturn
        end local 3 // org.glassfish.grizzly.nio.SelectorHandlerTask selectorHandlerTask
         3: .line 275
      StackMap locals:
      StackMap stack:
            aload 2 /* selectorHandlerTasks */
            invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
            checkcast org.glassfish.grizzly.nio.SelectorHandlerTask
            dup
            astore 3 /* selectorHandlerTask */
        start local 3 // org.glassfish.grizzly.nio.SelectorHandlerTask selectorHandlerTask
         4: ifnonnull 1
         5: .line 281
            iconst_1
            ireturn
        end local 3 // org.glassfish.grizzly.nio.SelectorHandlerTask selectorHandlerTask
        end local 2 // java.util.Queue selectorHandlerTasks
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0    6     0                  this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    6     1        selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0    6     2  selectorHandlerTasks  Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
            1    3     3   selectorHandlerTask  Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
            4    6     3   selectorHandlerTask  Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
    Exceptions:
      throws java.io.IOException
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;)Z
    MethodParameters:
                      Name  Flags
      selectorRunner        final
      selectorHandlerTasks  final

  private static void registerChannel0(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, , org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=6, locals=9, args_size=5
        start local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 1 // java.nio.channels.SelectableChannel channel
        start local 2 // int interest
        start local 3 // java.lang.Object attachment
        start local 4 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 290
            aload 1 /* channel */
            invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
            ifeq 24
         1: .line 292
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
            astore 5 /* selector */
        start local 5 // java.nio.channels.Selector selector
         2: .line 294
            aload 1 /* channel */
            aload 5 /* selector */
            invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
            astore 6 /* key */
        start local 6 // java.nio.channels.SelectionKey key
         3: .line 297
            aload 6 /* key */
            ifnull 4
            aload 6 /* key */
            invokevirtual java.nio.channels.SelectionKey.isValid:()Z
            ifeq 16
         4: .line 300
      StackMap locals: java.nio.channels.Selector java.nio.channels.SelectionKey
      StackMap stack:
            aload 1 /* channel */
            aload 5 /* selector */
            iload 2 /* interest */
            aload 3 /* attachment */
            invokevirtual java.nio.channels.SelectableChannel.register:(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;
         5: .line 299
            astore 7 /* registeredSelectionKey */
        start local 7 // java.nio.channels.SelectionKey registeredSelectionKey
         6: .line 302
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
         7: .line 303
            invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
         8: .line 304
            aload 7 /* registeredSelectionKey */
            invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.onKeyRegistered:(Ljava/nio/channels/SelectionKey;)V
         9: .line 307
            new org.glassfish.grizzly.nio.RegisterChannelResult
            dup
            aload 0 /* selectorRunner */
        10: .line 308
            aload 7 /* registeredSelectionKey */
            aload 1 /* channel */
        11: .line 307
            invokespecial org.glassfish.grizzly.nio.RegisterChannelResult.<init>:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;Ljava/nio/channels/SelectableChannel;)V
        12: .line 306
            astore 8 /* result */
        start local 8 // org.glassfish.grizzly.nio.RegisterChannelResult result
        13: .line 310
            aload 4 /* completionHandler */
            ifnull 30
        14: .line 311
            aload 4 /* completionHandler */
            aload 8 /* result */
            invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
        end local 8 // org.glassfish.grizzly.nio.RegisterChannelResult result
        end local 7 // java.nio.channels.SelectionKey registeredSelectionKey
        15: .line 313
            goto 30
        16: .line 317
      StackMap locals:
      StackMap stack:
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
        17: .line 316
            astore 7 /* postponedTasks */
        start local 7 // java.util.Queue postponedTasks
        18: .line 319
            new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation
            dup
            aload 1 /* channel */
            iload 2 /* interest */
        19: .line 320
            aload 3 /* attachment */
            aload 4 /* completionHandler */
        20: .line 319
            invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
        21: .line 318
            astore 8 /* operation */
        start local 8 // org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation operation
        22: .line 322
            aload 7 /* postponedTasks */
            aload 8 /* operation */
            invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
            pop
        end local 8 // org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation operation
        end local 7 // java.util.Queue postponedTasks
        end local 6 // java.nio.channels.SelectionKey key
        end local 5 // java.nio.channels.Selector selector
        23: .line 324
            goto 30
        24: .line 325
      StackMap locals:
      StackMap stack:
            aload 4 /* completionHandler */
        25: .line 326
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
        26: .line 325
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.failChannelRegistration:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
        27: .line 328
            goto 30
      StackMap locals:
      StackMap stack: java.io.IOException
        28: astore 5 /* e */
        start local 5 // java.io.IOException e
        29: .line 329
            aload 4 /* completionHandler */
            aload 5 /* e */
            invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.failChannelRegistration:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
        end local 5 // java.io.IOException e
        30: .line 331
      StackMap locals:
      StackMap stack:
            return
        end local 4 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 3 // java.lang.Object attachment
        end local 2 // int interest
        end local 1 // java.nio.channels.SelectableChannel channel
        end local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
      LocalVariableTable:
        Start  End  Slot                    Name  Signature
            0   31     0          selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   31     1                 channel  Ljava/nio/channels/SelectableChannel;
            0   31     2                interest  I
            0   31     3              attachment  Ljava/lang/Object;
            0   31     4       completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
            2   23     5                selector  Ljava/nio/channels/Selector;
            3   23     6                     key  Ljava/nio/channels/SelectionKey;
            6   15     7  registeredSelectionKey  Ljava/nio/channels/SelectionKey;
           13   15     8                  result  Lorg/glassfish/grizzly/nio/RegisterChannelResult;
           18   23     7          postponedTasks  Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
           22   23     8               operation  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler$RegisterChannelOperation;
           29   30     5                       e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0    27      28  Class java.io.IOException
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     final
      channel            final
      interest           final
      attachment         final
      completionHandler  final

  private static void failChannelRegistration(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>, java.lang.Throwable);
    descriptor: (Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.CompletionHandler completionHandler
        start local 1 // java.lang.Throwable error
         0: .line 337
            aload 0 /* completionHandler */
            ifnull 2
         1: .line 338
            aload 0 /* completionHandler */
            aload 1 /* error */
            invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
         2: .line 340
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Throwable error
        end local 0 // org.glassfish.grizzly.CompletionHandler completionHandler
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    3     0  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
            0    3     1              error  Ljava/lang/Throwable;
    Signature: (Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;Ljava/lang/Throwable;)V
    MethodParameters:
                   Name  Flags
      completionHandler  final
      error              final

  private static void deregisterChannel0(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=5, locals=7, args_size=3
        start local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        start local 1 // java.nio.channels.SelectableChannel channel
        start local 2 // org.glassfish.grizzly.CompletionHandler completionHandler
         0: .line 348
            aload 1 /* channel */
            invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
            ifeq 17
         1: .line 350
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
            astore 4 /* selector */
        start local 4 // java.nio.channels.Selector selector
         2: .line 352
            aload 1 /* channel */
            aload 4 /* selector */
            invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
            astore 5 /* key */
        start local 5 // java.nio.channels.SelectionKey key
         3: .line 355
            aload 5 /* key */
            ifnull 15
         4: .line 357
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
            invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
            aload 5 /* key */
            invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.cancel:(Ljava/nio/channels/SelectionKey;)V
         5: .line 359
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
         6: .line 360
            invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
         7: .line 361
            aload 5 /* key */
            invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.onKeyDeregistered:(Ljava/nio/channels/SelectionKey;)V
         8: .line 364
            new org.glassfish.grizzly.nio.RegisterChannelResult
            dup
            aload 0 /* selectorRunner */
         9: .line 365
            aload 5 /* key */
            aload 1 /* channel */
        10: .line 364
            invokespecial org.glassfish.grizzly.nio.RegisterChannelResult.<init>:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;Ljava/nio/channels/SelectableChannel;)V
        11: .line 363
            astore 6 /* result */
        start local 6 // org.glassfish.grizzly.nio.RegisterChannelResult result
        12: .line 367
            aload 2 /* completionHandler */
            ifnull 14
        13: .line 368
            aload 2 /* completionHandler */
            aload 6 /* result */
            invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
        14: .line 370
      StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler top java.nio.channels.Selector java.nio.channels.SelectionKey org.glassfish.grizzly.nio.RegisterChannelResult
      StackMap stack:
            return
        end local 6 // org.glassfish.grizzly.nio.RegisterChannelResult result
        15: .line 373
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalStateException
            dup
            ldc "Channel is not registered"
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            astore 3 /* error */
        end local 5 // java.nio.channels.SelectionKey key
        end local 4 // java.nio.channels.Selector selector
        start local 3 // java.lang.Throwable error
        16: .line 374
            goto 18
        end local 3 // java.lang.Throwable error
        17: .line 375
      StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler
      StackMap stack:
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            astore 3 /* error */
        start local 3 // java.lang.Throwable error
        18: .line 378
      StackMap locals: java.lang.Throwable
      StackMap stack:
            aconst_null
            aload 2 /* completionHandler */
            aload 3 /* error */
            invokestatic org.glassfish.grizzly.utils.Futures.notifyFailure:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
        19: .line 379
            goto 22
        end local 3 // java.lang.Throwable error
      StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler
      StackMap stack: java.io.IOException
        20: astore 4 /* e */
        start local 4 // java.io.IOException e
        21: .line 380
            aconst_null
            aload 2 /* completionHandler */
            aload 4 /* e */
            invokestatic org.glassfish.grizzly.utils.Futures.notifyFailure:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
        end local 4 // java.io.IOException e
        22: .line 382
      StackMap locals:
      StackMap stack:
            return
        end local 2 // org.glassfish.grizzly.CompletionHandler completionHandler
        end local 1 // java.nio.channels.SelectableChannel channel
        end local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0   23     0     selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
            0   23     1            channel  Ljava/nio/channels/SelectableChannel;
            0   23     2  completionHandler  Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
           16   17     3              error  Ljava/lang/Throwable;
           18   20     3              error  Ljava/lang/Throwable;
            2   16     4           selector  Ljava/nio/channels/Selector;
            3   16     5                key  Ljava/nio/channels/SelectionKey;
           12   15     6             result  Lorg/glassfish/grizzly/nio/RegisterChannelResult;
           21   22     4                  e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           0    14      20  Class java.io.IOException
          15    19      20  Class java.io.IOException
    Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
    MethodParameters:
                   Name  Flags
      selectorRunner     final
      channel            final
      completionHandler  final

  public boolean onSelectorClosed(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
        start local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
        start local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 387
            aload 1 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.workaroundSelectorSpin:()V
         1: .line 388
            iconst_1
            ireturn
         2: .line 389
      StackMap locals:
      StackMap stack: java.lang.Exception
            pop
         3: .line 390
            iconst_0
            ireturn
        end local 1 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
        end local 0 // org.glassfish.grizzly.nio.DefaultSelectorHandler this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    4     0            this  Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
            0    4     1  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
      Exception table:
        from    to  target  type
           0     1       2  Class java.lang.Exception
    MethodParameters:
                Name  Flags
      selectorRunner  final

  private static boolean isSelectorRunnerThread(org.glassfish.grizzly.nio.SelectorRunner);
    descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
         0: .line 395
            aload 0 /* selectorRunner */
            ifnull 3
         1: .line 396
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            aload 0 /* selectorRunner */
            invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getRunnerThread:()Ljava/lang/Thread;
            if_acmpne 3
         2: .line 395
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         3: iconst_0
            ireturn
        end local 0 // org.glassfish.grizzly.nio.SelectorRunner selectorRunner
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0    4     0  selectorRunner  Lorg/glassfish/grizzly/nio/SelectorRunner;
    MethodParameters:
                Name  Flags
      selectorRunner  final
}
SourceFile: "DefaultSelectorHandler.java"
NestMembers:
  org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation  org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation  org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask  org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
InnerClasses:
  protected final DeregisterChannelOperation = org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation of org.glassfish.grizzly.nio.DefaultSelectorHandler
  protected final RegisterChannelOperation = org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation of org.glassfish.grizzly.nio.DefaultSelectorHandler
  protected final RegisterKeyTask = org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask of org.glassfish.grizzly.nio.DefaultSelectorHandler
  protected final RunnableTask = org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask of org.glassfish.grizzly.nio.DefaultSelectorHandler
  public abstract Task = org.glassfish.grizzly.nio.SelectorHandler$Task of org.glassfish.grizzly.nio.SelectorHandler