public class io.netty.channel.ThreadPerChannelEventLoop extends io.netty.channel.SingleThreadEventLoop
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.channel.ThreadPerChannelEventLoop
super_class: io.netty.channel.SingleThreadEventLoop
{
private final io.netty.channel.ThreadPerChannelEventLoopGroup parent;
descriptor: Lio/netty/channel/ThreadPerChannelEventLoopGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.netty.channel.Channel ch;
descriptor: Lio/netty/channel/Channel;
flags: (0x0002) ACC_PRIVATE
public void <init>(io.netty.channel.ThreadPerChannelEventLoopGroup);
descriptor: (Lio/netty/channel/ThreadPerChannelEventLoopGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
getfield io.netty.channel.ThreadPerChannelEventLoopGroup.executor:Ljava/util/concurrent/Executor;
iconst_1
invokespecial io.netty.channel.SingleThreadEventLoop.<init>:(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;Z)V
1: aload 0
aload 1
putfield io.netty.channel.ThreadPerChannelEventLoop.parent:Lio/netty/channel/ThreadPerChannelEventLoopGroup;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/ThreadPerChannelEventLoop;
0 3 1 parent Lio/netty/channel/ThreadPerChannelEventLoopGroup;
MethodParameters:
Name Flags
parent
public io.netty.channel.ChannelFuture register(io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.netty.channel.SingleThreadEventLoop.register:(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
new io.netty.channel.ThreadPerChannelEventLoop$1
dup
aload 0
invokespecial io.netty.channel.ThreadPerChannelEventLoop$1.<init>:(Lio/netty/channel/ThreadPerChannelEventLoop;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/ThreadPerChannelEventLoop;
0 1 1 promise Lio/netty/channel/ChannelPromise;
MethodParameters:
Name Flags
promise
public io.netty.channel.ChannelFuture register(io.netty.channel.Channel, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/Channel;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial io.netty.channel.SingleThreadEventLoop.register:(Lio/netty/channel/Channel;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
new io.netty.channel.ThreadPerChannelEventLoop$2
dup
aload 0
invokespecial io.netty.channel.ThreadPerChannelEventLoop$2.<init>:(Lio/netty/channel/ThreadPerChannelEventLoop;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/ThreadPerChannelEventLoop;
0 1 1 channel Lio/netty/channel/Channel;
0 1 2 promise Lio/netty/channel/ChannelPromise;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
channel
promise
protected void run();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.takeTask:()Ljava/lang/Runnable;
astore 1
start local 1 1: aload 1
ifnull 4
2: aload 1
invokeinterface java.lang.Runnable.run:()V
3: aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.updateLastExecutionTime:()V
4: StackMap locals: java.lang.Runnable
StackMap stack:
aload 0
getfield io.netty.channel.ThreadPerChannelEventLoop.ch:Lio/netty/channel/Channel;
astore 2
start local 2 5: aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.isShuttingDown:()Z
ifeq 10
6: aload 2
ifnull 8
7: aload 2
invokeinterface io.netty.channel.Channel.unsafe:()Lio/netty/channel/Channel$Unsafe;
aload 2
invokeinterface io.netty.channel.Channel.unsafe:()Lio/netty/channel/Channel$Unsafe;
invokeinterface io.netty.channel.Channel$Unsafe.voidPromise:()Lio/netty/channel/ChannelPromise;
invokeinterface io.netty.channel.Channel$Unsafe.close:(Lio/netty/channel/ChannelPromise;)V
8: StackMap locals: io.netty.channel.Channel
StackMap stack:
aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.confirmShutdown:()Z
ifeq 0
9: goto 15
10: StackMap locals:
StackMap stack:
aload 2
ifnull 0
11: aload 2
invokeinterface io.netty.channel.Channel.isRegistered:()Z
ifne 0
12: aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.runAllTasks:()Z
pop
13: aload 0
invokevirtual io.netty.channel.ThreadPerChannelEventLoop.deregister:()V
end local 2 end local 1 14: goto 0
15: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/channel/ThreadPerChannelEventLoop;
1 14 1 task Ljava/lang/Runnable;
5 14 2 ch Lio/netty/channel/Channel;
protected void deregister();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield io.netty.channel.ThreadPerChannelEventLoop.ch:Lio/netty/channel/Channel;
1: aload 0
getfield io.netty.channel.ThreadPerChannelEventLoop.parent:Lio/netty/channel/ThreadPerChannelEventLoopGroup;
getfield io.netty.channel.ThreadPerChannelEventLoopGroup.activeChildren:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield io.netty.channel.ThreadPerChannelEventLoop.parent:Lio/netty/channel/ThreadPerChannelEventLoopGroup;
getfield io.netty.channel.ThreadPerChannelEventLoopGroup.idleChildren:Ljava/util/Queue;
aload 0
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/ThreadPerChannelEventLoop;
}
SourceFile: "ThreadPerChannelEventLoop.java"
NestMembers:
io.netty.channel.ThreadPerChannelEventLoop$1 io.netty.channel.ThreadPerChannelEventLoop$2
InnerClasses:
public abstract Unsafe = io.netty.channel.Channel$Unsafe of io.netty.channel.Channel
io.netty.channel.ThreadPerChannelEventLoop$1
io.netty.channel.ThreadPerChannelEventLoop$2