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 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.xnio.ChannelListeners$DrainListener.finishListener:Lorg/xnio/ChannelListener;
2: aload 0
aload 2
putfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
3: aload 0
lload 3
putfield org.xnio.ChannelListeners$DrainListener.count:J
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/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 start local 1 0: aload 0
getfield org.xnio.ChannelListeners$DrainListener.count:J
lstore 2
start local 2 1: StackMap locals: long
StackMap stack:
aload 1
lload 2
invokestatic org.xnio.channels.Channels.drain:(Lorg/xnio/channels/StreamSourceChannel;J)J
lstore 4
start local 4 2: lload 4
ldc -1
lcmp
ifeq 3
lload 4
lload 2
lcmp
ifne 7
3: StackMap locals: long
StackMap stack:
aload 0
lconst_0
putfield org.xnio.ChannelListeners$DrainListener.count:J
4: aload 1
aload 0
getfield org.xnio.ChannelListeners$DrainListener.finishListener:Lorg/xnio/ChannelListener;
invokestatic org.xnio.ChannelListeners.invokeChannelListener:(Ljava/nio/channels/Channel;Lorg/xnio/ChannelListener;)Z
pop
5: aload 0
lload 2
putfield org.xnio.ChannelListeners$DrainListener.count:J
6: return
7: StackMap locals:
StackMap stack:
lload 4
lconst_0
lcmp
ifne 10
8: aload 0
lload 2
putfield org.xnio.ChannelListeners$DrainListener.count:J
9: return
10: StackMap locals:
StackMap stack:
lload 2
ldc 9223372036854775807
lcmp
ifge 1
11: lload 2
lload 4
lsub
lstore 2
end local 4 12: goto 1
13: StackMap locals: org.xnio.ChannelListeners$DrainListener org.xnio.channels.StreamSourceChannel long
StackMap stack: java.lang.Throwable
astore 6
14: aload 0
lload 2
putfield org.xnio.ChannelListeners$DrainListener.count:J
15: aload 6
athrow
end local 2 16: StackMap locals: org.xnio.ChannelListeners$DrainListener org.xnio.channels.StreamSourceChannel
StackMap stack: java.io.IOException
astore 2
start local 2 17: aload 0
lconst_0
putfield org.xnio.ChannelListeners$DrainListener.count:J
18: aload 0
getfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
ifnull 21
19: aload 1
aload 0
getfield org.xnio.ChannelListeners$DrainListener.exceptionHandler:Lorg/xnio/ChannelExceptionHandler;
aload 2
invokestatic org.xnio.ChannelListeners.invokeChannelExceptionHandler:(Ljava/nio/channels/Channel;Lorg/xnio/ChannelExceptionHandler;Ljava/io/IOException;)V
20: goto 22
21: StackMap locals: java.io.IOException
StackMap stack:
aload 1
invokestatic org.xnio.IoUtils.safeShutdownReads:(Lorg/xnio/channels/SuspendableReadChannel;)V
end local 2 22: StackMap locals:
StackMap stack:
return
end local 1 end local 0 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 0: new java.lang.StringBuilder
dup
ldc "Draining channel listener ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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
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 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: 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