public class io.netty.example.discard.DiscardClientHandler extends io.netty.channel.SimpleChannelInboundHandler<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.example.discard.DiscardClientHandler
super_class: io.netty.channel.SimpleChannelInboundHandler
{
private io.netty.buffer.ByteBuf content;
descriptor: Lio/netty/buffer/ByteBuf;
flags: (0x0002) ACC_PRIVATE
private io.netty.channel.ChannelHandlerContext ctx;
descriptor: Lio/netty/channel/ChannelHandlerContext;
flags: (0x0002) ACC_PRIVATE
long counter;
descriptor: J
flags: (0x0000)
private final io.netty.channel.ChannelFutureListener trafficGenerator;
descriptor: Lio/netty/channel/ChannelFutureListener;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.channel.SimpleChannelInboundHandler.<init>:()V
1: aload 0
new io.netty.example.discard.DiscardClientHandler$1
dup
aload 0
invokespecial io.netty.example.discard.DiscardClientHandler$1.<init>:(Lio/netty/example/discard/DiscardClientHandler;)V
putfield io.netty.example.discard.DiscardClientHandler.trafficGenerator:Lio/netty/channel/ChannelFutureListener;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/discard/DiscardClientHandler;
public void channelActive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.netty.example.discard.DiscardClientHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
1: aload 0
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
getstatic io.netty.example.discard.DiscardClient.SIZE:I
invokeinterface io.netty.buffer.ByteBufAllocator.directBuffer:(I)Lio/netty/buffer/ByteBuf;
getstatic io.netty.example.discard.DiscardClient.SIZE:I
invokevirtual io.netty.buffer.ByteBuf.writeZero:(I)Lio/netty/buffer/ByteBuf;
putfield io.netty.example.discard.DiscardClientHandler.content:Lio/netty/buffer/ByteBuf;
2: aload 0
invokevirtual io.netty.example.discard.DiscardClientHandler.generateTraffic:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/example/discard/DiscardClientHandler;
0 4 1 ctx Lio/netty/channel/ChannelHandlerContext;
MethodParameters:
Name Flags
ctx
public void channelInactive(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.example.discard.DiscardClientHandler.content:Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/discard/DiscardClientHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
MethodParameters:
Name Flags
ctx
public void channelRead0(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/discard/DiscardClientHandler;
0 1 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 1 2 msg Ljava/lang/Object;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
public void exceptionCaught(io.netty.channel.ChannelHandlerContext, java.lang.Throwable);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.lang.Throwable.printStackTrace:()V
1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.close:()Lio/netty/channel/ChannelFuture;
pop
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/example/discard/DiscardClientHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 3 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
ctx
cause
private void generateTraffic();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.example.discard.DiscardClientHandler.ctx:Lio/netty/channel/ChannelHandlerContext;
aload 0
getfield io.netty.example.discard.DiscardClientHandler.content:Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.retainedDuplicate:()Lio/netty/buffer/ByteBuf;
invokeinterface io.netty.channel.ChannelHandlerContext.writeAndFlush:(Ljava/lang/Object;)Lio/netty/channel/ChannelFuture;
aload 0
getfield io.netty.example.discard.DiscardClientHandler.trafficGenerator:Lio/netty/channel/ChannelFutureListener;
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/discard/DiscardClientHandler;
}
Signature: Lio/netty/channel/SimpleChannelInboundHandler<Ljava/lang/Object;>;
SourceFile: "DiscardClientHandler.java"
NestMembers:
io.netty.example.discard.DiscardClientHandler$1
InnerClasses:
io.netty.example.discard.DiscardClientHandler$1