class org.xnio.ChannelListeners$DrainListener<T extends org.xnio.channels.StreamSourceChannel> implements org.xnio.ChannelListener<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: org.xnio.ChannelListeners$DrainListener
  super_class: java.lang.Object
{
  private final org.xnio.ChannelListener<? super T> finishListener;
    descriptor: Lorg/xnio/ChannelListener;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lorg/xnio/ChannelListener<-TT;>;

  private final org.xnio.ChannelExceptionHandler<? super T> exceptionHandler;
    descriptor: Lorg/xnio/ChannelExceptionHandler;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lorg/xnio/ChannelExceptionHandler<-TT;>;

  private long count;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private void <init>(org.xnio.ChannelListener<? super T>, org.xnio.ChannelExceptionHandler<? super T>, );
    descriptor: (Lorg/xnio/ChannelListener;Lorg/xnio/ChannelExceptionHandler;J)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=5, args_size=4
        start local 0 // org.xnio.ChannelListeners$DrainListener this
        start local 1 // org.xnio.ChannelListener finishListener
        start local 2 // org.xnio.ChannelExceptionHandler exceptionHandler
        start local 3 // long count
         0: .line 1130
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 1131
            aload 0 /* this */
            aload 1 /* finishListener */
            putfield org.xnio.ChannelListeners$DrainListener.finishListener:Lorg/xnio/ChannelListener;
         2: .line 1132
            aload 0 /* this */
            aload 2 /* exceptionHandler */
            putfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
         3: .line 1133
            aload 0 /* this */
            lload 3 /* count */
            putfield org.xnio.ChannelListeners$DrainListener.count:J
         4: .line 1134
            return
        end local 3 // long count
        end local 2 // org.xnio.ChannelExceptionHandler exceptionHandler
        end local 1 // org.xnio.ChannelListener finishListener
        end local 0 // org.xnio.ChannelListeners$DrainListener this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0    5     0              this  Lorg/xnio/ChannelListeners$DrainListener<TT;>;
            0    5     1    finishListener  Lorg/xnio/ChannelListener<-TT;>;
            0    5     2  exceptionHandler  Lorg/xnio/ChannelExceptionHandler<-TT;>;
            0    5     3             count  J
    Signature: (Lorg/xnio/ChannelListener<-TT;>;Lorg/xnio/ChannelExceptionHandler<-TT;>;J)V
    MethodParameters:
                  Name  Flags
      finishListener    final
      exceptionHandler  final
      count             final

  public void handleEvent();
    descriptor: (Lorg/xnio/channels/StreamSourceChannel;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=7, args_size=2
        start local 0 // org.xnio.ChannelListeners$DrainListener this
        start local 1 // org.xnio.channels.StreamSourceChannel channel
         0: .line 1138
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.count:J
            lstore 2 /* count */
        start local 2 // long count
         1: .line 1142
      StackMap locals: long
      StackMap stack:
            aload 1 /* channel */
            lload 2 /* count */
            invokestatic org.xnio.channels.Channels.drain:(Lorg/xnio/channels/StreamSourceChannel;J)J
            lstore 4 /* res */
        start local 4 // long res
         2: .line 1143
            lload 4 /* res */
            ldc -1
            lcmp
            ifeq 3
            lload 4 /* res */
            lload 2 /* count */
            lcmp
            ifne 7
         3: .line 1144
      StackMap locals: long
      StackMap stack:
            aload 0 /* this */
            lconst_0
            putfield org.xnio.ChannelListeners$DrainListener.count:J
         4: .line 1145
            aload 1 /* channel */
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.finishListener:Lorg/xnio/ChannelListener;
            invokestatic org.xnio.ChannelListeners.invokeChannelListener:(Ljava/nio/channels/Channel;Lorg/xnio/ChannelListener;)Z
            pop
         5: .line 1155
            aload 0 /* this */
            lload 2 /* count */
            putfield org.xnio.ChannelListeners$DrainListener.count:J
         6: .line 1146
            return
         7: .line 1147
      StackMap locals:
      StackMap stack:
            lload 4 /* res */
            lconst_0
            lcmp
            ifne 10
         8: .line 1155
            aload 0 /* this */
            lload 2 /* count */
            putfield org.xnio.ChannelListeners$DrainListener.count:J
         9: .line 1148
            return
        10: .line 1149
      StackMap locals:
      StackMap stack:
            lload 2 /* count */
            ldc 9223372036854775807
            lcmp
            ifge 1
        11: .line 1151
            lload 2 /* count */
            lload 4 /* res */
            lsub
            lstore 2 /* count */
        end local 4 // long res
        12: .line 1141
            goto 1
        13: .line 1154
      StackMap locals: org.xnio.ChannelListeners$DrainListener org.xnio.channels.StreamSourceChannel long
      StackMap stack: java.lang.Throwable
            astore 6
        14: .line 1155
            aload 0 /* this */
            lload 2 /* count */
            putfield org.xnio.ChannelListeners$DrainListener.count:J
        15: .line 1156
            aload 6
            athrow
        end local 2 // long count
        16: .line 1157
      StackMap locals: org.xnio.ChannelListeners$DrainListener org.xnio.channels.StreamSourceChannel
      StackMap stack: java.io.IOException
            astore 2 /* e */
        start local 2 // java.io.IOException e
        17: .line 1158
            aload 0 /* this */
            lconst_0
            putfield org.xnio.ChannelListeners$DrainListener.count:J
        18: .line 1159
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
            ifnull 21
        19: .line 1160
            aload 1 /* channel */
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
            aload 2 /* e */
            invokestatic org.xnio.ChannelListeners.invokeChannelExceptionHandler:(Ljava/nio/channels/Channel;Lorg/xnio/ChannelExceptionHandler;Ljava/io/IOException;)V
        20: .line 1161
            goto 22
        21: .line 1162
      StackMap locals: java.io.IOException
      StackMap stack:
            aload 1 /* channel */
            invokestatic org.xnio.IoUtils.safeShutdownReads:(Lorg/xnio/channels/SuspendableReadChannel;)V
        end local 2 // java.io.IOException e
        22: .line 1165
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.xnio.channels.StreamSourceChannel channel
        end local 0 // org.xnio.ChannelListeners$DrainListener this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   23     0     this  Lorg/xnio/ChannelListeners$DrainListener<TT;>;
            0   23     1  channel  TT;
            1   16     2    count  J
            2   12     4      res  J
           17   22     2        e  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           1     5      13  any
           7     8      13  any
          10    13      13  any
           0     6      16  Class java.io.IOException
           7     9      16  Class java.io.IOException
          10    16      16  Class java.io.IOException
    Signature: (TT;)V
    MethodParameters:
         Name  Flags
      channel  final

  public java.lang.String toString();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.xnio.ChannelListeners$DrainListener this
         0: .line 1168
            new java.lang.StringBuilder
            dup
            ldc "Draining channel listener ("
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.count:J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " bytes) -> "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.xnio.ChannelListeners$DrainListener.finishListener:Lorg/xnio/ChannelListener;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
        end local 0 // org.xnio.ChannelListeners$DrainListener this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/xnio/ChannelListeners$DrainListener<TT;>;

  public void handleEvent(java.nio.channels.Channel);
    descriptor: (Ljava/nio/channels/Channel;)V
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=2, locals=2, args_size=2
         0: .line 1
            aload 0
            aload 1
            checkcast org.xnio.channels.StreamSourceChannel
            invokevirtual org.xnio.ChannelListeners$DrainListener.handleEvent:(Lorg/xnio/channels/StreamSourceChannel;)V
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
Signature: <T::Lorg/xnio/channels/StreamSourceChannel;>Ljava/lang/Object;Lorg/xnio/ChannelListener<TT;>;
SourceFile: "ChannelListeners.java"
NestHost: org.xnio.ChannelListeners
InnerClasses:
  private DrainListener = org.xnio.ChannelListeners$DrainListener of org.xnio.ChannelListeners