public final class io.netty.util.concurrent.GlobalEventExecutor extends io.netty.util.concurrent.AbstractScheduledEventExecutor
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.util.concurrent.GlobalEventExecutor
super_class: io.netty.util.concurrent.AbstractScheduledEventExecutor
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long SCHEDULE_QUIET_PERIOD_INTERVAL;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final io.netty.util.concurrent.GlobalEventExecutor INSTANCE;
descriptor: Lio/netty/util/concurrent/GlobalEventExecutor;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
final java.util.concurrent.BlockingQueue<java.lang.Runnable> taskQueue;
descriptor: Ljava/util/concurrent/BlockingQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;
final io.netty.util.concurrent.ScheduledFutureTask<java.lang.Void> quietPeriodTask;
descriptor: Lio/netty/util/concurrent/ScheduledFutureTask;
flags: (0x0010) ACC_FINAL
Signature: Lio/netty/util/concurrent/ScheduledFutureTask<Ljava/lang/Void;>;
final java.util.concurrent.ThreadFactory threadFactory;
descriptor: Ljava/util/concurrent/ThreadFactory;
flags: (0x0010) ACC_FINAL
private final io.netty.util.concurrent.GlobalEventExecutor$TaskRunner taskRunner;
descriptor: Lio/netty/util/concurrent/GlobalEventExecutor$TaskRunner;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean started;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
volatile java.lang.Thread thread;
descriptor: Ljava/lang/Thread;
flags: (0x0040) ACC_VOLATILE
private final io.netty.util.concurrent.Future<?> terminationFuture;
descriptor: Lio/netty/util/concurrent/Future;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/Future<*>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lio/netty/util/concurrent/GlobalEventExecutor;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.util.concurrent.GlobalEventExecutor.logger:Lio/netty/util/internal/logging/InternalLogger;
1: getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
lconst_1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
putstatic io.netty.util.concurrent.GlobalEventExecutor.SCHEDULE_QUIET_PERIOD_INTERVAL:J
2: new io.netty.util.concurrent.GlobalEventExecutor
dup
invokespecial io.netty.util.concurrent.GlobalEventExecutor.<init>:()V
putstatic io.netty.util.concurrent.GlobalEventExecutor.INSTANCE:Lio/netty/util/concurrent/GlobalEventExecutor;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.util.concurrent.AbstractScheduledEventExecutor.<init>:()V
1: aload 0
new java.util.concurrent.LinkedBlockingQueue
dup
invokespecial java.util.concurrent.LinkedBlockingQueue.<init>:()V
putfield io.netty.util.concurrent.GlobalEventExecutor.taskQueue:Ljava/util/concurrent/BlockingQueue;
2: aload 0
new io.netty.util.concurrent.ScheduledFutureTask
dup
3: aload 0
new io.netty.util.concurrent.GlobalEventExecutor$1
dup
aload 0
invokespecial io.netty.util.concurrent.GlobalEventExecutor$1.<init>:(Lio/netty/util/concurrent/GlobalEventExecutor;)V
4: aconst_null
5: invokestatic java.util.concurrent.Executors.callable:(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;
6: getstatic io.netty.util.concurrent.GlobalEventExecutor.SCHEDULE_QUIET_PERIOD_INTERVAL:J
invokestatic io.netty.util.concurrent.ScheduledFutureTask.deadlineNanos:(J)J
getstatic io.netty.util.concurrent.GlobalEventExecutor.SCHEDULE_QUIET_PERIOD_INTERVAL:J
lneg
7: invokespecial io.netty.util.concurrent.ScheduledFutureTask.<init>:(Lio/netty/util/concurrent/AbstractScheduledEventExecutor;Ljava/util/concurrent/Callable;JJ)V
putfield io.netty.util.concurrent.GlobalEventExecutor.quietPeriodTask:Lio/netty/util/concurrent/ScheduledFutureTask;
8: aload 0
9: new io.netty.util.concurrent.DefaultThreadFactory
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic io.netty.util.concurrent.DefaultThreadFactory.toPoolName:(Ljava/lang/Class;)Ljava/lang/String;
iconst_0
iconst_5
aconst_null
invokespecial io.netty.util.concurrent.DefaultThreadFactory.<init>:(Ljava/lang/String;ZILjava/lang/ThreadGroup;)V
putfield io.netty.util.concurrent.GlobalEventExecutor.threadFactory:Ljava/util/concurrent/ThreadFactory;
10: aload 0
new io.netty.util.concurrent.GlobalEventExecutor$TaskRunner
dup
aload 0
invokespecial io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.<init>:(Lio/netty/util/concurrent/GlobalEventExecutor;)V
putfield io.netty.util.concurrent.GlobalEventExecutor.taskRunner:Lio/netty/util/concurrent/GlobalEventExecutor$TaskRunner;
11: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield io.netty.util.concurrent.GlobalEventExecutor.started:Ljava/util/concurrent/atomic/AtomicBoolean;
12: aload 0
new io.netty.util.concurrent.FailedFuture
dup
aload 0
new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
invokespecial io.netty.util.concurrent.FailedFuture.<init>:(Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Throwable;)V
putfield io.netty.util.concurrent.GlobalEventExecutor.terminationFuture:Lio/netty/util/concurrent/Future;
13: aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.scheduledTaskQueue:()Lio/netty/util/internal/PriorityQueue;
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.quietPeriodTask:Lio/netty/util/concurrent/ScheduledFutureTask;
invokeinterface io.netty.util.internal.PriorityQueue.add:(Ljava/lang/Object;)Z
pop
14: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
java.lang.Runnable takeTask();
descriptor: ()Ljava/lang/Runnable;
flags: (0x0000)
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.taskQueue:Ljava/util/concurrent/BlockingQueue;
astore 1
start local 1 1: StackMap locals: java.util.concurrent.BlockingQueue
StackMap stack:
aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.peekScheduledTask:()Lio/netty/util/concurrent/ScheduledFutureTask;
astore 2
start local 2 2: aload 2
ifnonnull 8
3: aconst_null
astore 3
start local 3 4: aload 1
invokeinterface java.util.concurrent.BlockingQueue.take:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 3
5: goto 7
StackMap locals: io.netty.util.concurrent.GlobalEventExecutor java.util.concurrent.BlockingQueue io.netty.util.concurrent.ScheduledFutureTask java.lang.Runnable
StackMap stack: java.lang.InterruptedException
6: pop
7: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 8: StackMap locals:
StackMap stack:
aload 2
invokevirtual io.netty.util.concurrent.ScheduledFutureTask.delayNanos:()J
lstore 3
start local 3 9: lload 3
lconst_0
lcmp
ifle 14
10: aload 1
lload 3
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.BlockingQueue.poll:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
checkcast java.lang.Runnable
astore 5
start local 5 11: goto 15
end local 5 StackMap locals: io.netty.util.concurrent.GlobalEventExecutor java.util.concurrent.BlockingQueue io.netty.util.concurrent.ScheduledFutureTask long
StackMap stack: java.lang.InterruptedException
12: pop
13: aconst_null
areturn
14: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.concurrent.BlockingQueue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 5
start local 5 15: StackMap locals: java.lang.Runnable
StackMap stack:
aload 5
ifnonnull 18
16: aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.fetchFromScheduledTaskQueue:()V
17: aload 1
invokeinterface java.util.concurrent.BlockingQueue.poll:()Ljava/lang/Object;
checkcast java.lang.Runnable
astore 5
18: StackMap locals:
StackMap stack:
aload 5
ifnull 1
19: aload 5
areturn
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
1 20 1 taskQueue Ljava/util/concurrent/BlockingQueue<Ljava/lang/Runnable;>;
2 20 2 scheduledTask Lio/netty/util/concurrent/ScheduledFutureTask<*>;
4 8 3 task Ljava/lang/Runnable;
9 20 3 delayNanos J
11 12 5 task Ljava/lang/Runnable;
15 20 5 task Ljava/lang/Runnable;
Exception table:
from to target type
4 5 6 Class java.lang.InterruptedException
10 11 12 Class java.lang.InterruptedException
private void fetchFromScheduledTaskQueue();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic io.netty.util.concurrent.AbstractScheduledEventExecutor.nanoTime:()J
lstore 1
start local 1 1: aload 0
lload 1
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.pollScheduledTask:(J)Ljava/lang/Runnable;
astore 3
start local 3 2: goto 5
3: StackMap locals: long java.lang.Runnable
StackMap stack:
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.taskQueue:Ljava/util/concurrent/BlockingQueue;
aload 3
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
4: aload 0
lload 1
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.pollScheduledTask:(J)Ljava/lang/Runnable;
astore 3
5: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
6: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
1 7 1 nanoTime J
2 7 3 scheduledTask Ljava/lang/Runnable;
public int pendingTasks();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.taskQueue:Ljava/util/concurrent/BlockingQueue;
invokeinterface java.util.concurrent.BlockingQueue.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
private void addTask(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "task"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.taskQueue:Ljava/util/concurrent/BlockingQueue;
aload 1
invokeinterface java.util.concurrent.BlockingQueue.add:(Ljava/lang/Object;)Z
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 4 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
public boolean inEventLoop(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.thread:Ljava/lang/Thread;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 2 1 thread Ljava/lang/Thread;
MethodParameters:
Name Flags
thread
public io.netty.util.concurrent.Future<?> shutdownGracefully(long, long, java.util.concurrent.TimeUnit);
descriptor: (JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=6, args_size=4
start local 0 start local 1 start local 3 start local 5 0: aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.terminationFuture:()Lio/netty/util/concurrent/Future;
areturn
end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 1 1 quietPeriod J
0 1 3 timeout J
0 1 5 unit Ljava/util/concurrent/TimeUnit;
Signature: (JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future<*>;
MethodParameters:
Name Flags
quietPeriod
timeout
unit
public io.netty.util.concurrent.Future<?> terminationFuture();
descriptor: ()Lio/netty/util/concurrent/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.terminationFuture:Lio/netty/util/concurrent/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
Signature: ()Lio/netty/util/concurrent/Future<*>;
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public boolean isShuttingDown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
public boolean isShutdown();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
public boolean isTerminated();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
public boolean awaitTermination(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=4, args_size=3
start local 0 start local 1 start local 3 0: iconst_0
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 1 1 timeout J
0 1 3 unit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
timeout
unit
public boolean awaitInactivity(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "unit"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.thread:Ljava/lang/Thread;
astore 4
start local 4 3: aload 4
ifnonnull 5
4: new java.lang.IllegalStateException
dup
ldc "thread was not started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.Thread
StackMap stack:
aload 4
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
invokevirtual java.lang.Thread.join:(J)V
6: aload 4
invokevirtual java.lang.Thread.isAlive:()Z
ifeq 7
iconst_0
goto 8
StackMap locals:
StackMap stack:
7: iconst_1
StackMap locals:
StackMap stack: int
8: ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 9 1 timeout J
0 9 3 unit Ljava/util/concurrent/TimeUnit;
3 9 4 thread Ljava/lang/Thread;
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timeout
unit
public void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "task"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.addTask:(Ljava/lang/Runnable;)V
3: aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.inEventLoop:()Z
ifne 5
4: aload 0
invokevirtual io.netty.util.concurrent.GlobalEventExecutor.startThread:()V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
0 6 1 task Ljava/lang/Runnable;
MethodParameters:
Name Flags
task
private void startThread();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.started:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 5
1: aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.threadFactory:Ljava/util/concurrent/ThreadFactory;
aload 0
getfield io.netty.util.concurrent.GlobalEventExecutor.taskRunner:Lio/netty/util/concurrent/GlobalEventExecutor$TaskRunner;
invokeinterface java.util.concurrent.ThreadFactory.newThread:(Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 1
start local 1 2: new io.netty.util.concurrent.GlobalEventExecutor$2
dup
aload 0
aload 1
invokespecial io.netty.util.concurrent.GlobalEventExecutor$2.<init>:(Lio/netty/util/concurrent/GlobalEventExecutor;Ljava/lang/Thread;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
3: aload 0
aload 1
putfield io.netty.util.concurrent.GlobalEventExecutor.thread:Ljava/lang/Thread;
4: aload 1
invokevirtual java.lang.Thread.start:()V
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/util/concurrent/GlobalEventExecutor;
2 5 1 t Ljava/lang/Thread;
}
SourceFile: "GlobalEventExecutor.java"
NestMembers:
io.netty.util.concurrent.GlobalEventExecutor$1 io.netty.util.concurrent.GlobalEventExecutor$2 io.netty.util.concurrent.GlobalEventExecutor$TaskRunner
InnerClasses:
io.netty.util.concurrent.GlobalEventExecutor$1
io.netty.util.concurrent.GlobalEventExecutor$2
final TaskRunner = io.netty.util.concurrent.GlobalEventExecutor$TaskRunner of io.netty.util.concurrent.GlobalEventExecutor