classes.io.netty.util.concurrent.GlobalEventExecutor.class Maven / Gradle / Ivy
???? 2 ,io/netty/util/concurrent/GlobalEventExecutor 7io/netty/util/concurrent/AbstractScheduledEventExecutor GlobalEventExecutor.java 7io/netty/util/concurrent/GlobalEventExecutor$TaskRunner
TaskRunner .io/netty/util/concurrent/GlobalEventExecutor$1 logger /Lio/netty/util/internal/logging/InternalLogger; SCHEDULE_QUIET_PERIOD_INTERVAL J INSTANCE .Lio/netty/util/concurrent/GlobalEventExecutor; taskQueue $Ljava/util/concurrent/BlockingQueue; :Ljava/util/concurrent/BlockingQueue; quietPeriodTask .Lio/netty/util/concurrent/ScheduledFutureTask; @Lio/netty/util/concurrent/ScheduledFutureTask;
threadFactory $Ljava/util/concurrent/ThreadFactory;
taskRunner 9Lio/netty/util/concurrent/GlobalEventExecutor$TaskRunner; started +Ljava/util/concurrent/atomic/AtomicBoolean; thread Ljava/lang/Thread; terminationFuture !Lio/netty/util/concurrent/Future; $Lio/netty/util/concurrent/Future<*>; ()V " #
$ (java/util/concurrent/LinkedBlockingQueue &
' $ ) ,io/netty/util/concurrent/ScheduledFutureTask + 1(Lio/netty/util/concurrent/GlobalEventExecutor;)V " -
. java/util/concurrent/Executors 0 callable G(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable; 2 3
1 4
6
deadlineNanos (J)J 8 9
, : ](Lio/netty/util/concurrent/AbstractScheduledEventExecutor;Ljava/util/concurrent/Callable;JJ)V " <
, = ? -io/netty/util/concurrent/DefaultThreadFactory A java/lang/Object C getClass ()Ljava/lang/Class; E F
D G
toPoolName %(Ljava/lang/Class;)Ljava/lang/String; I J
B K .(Ljava/lang/String;ZILjava/lang/ThreadGroup;)V " M
B N P
. S )java/util/concurrent/atomic/AtomicBoolean U
V $ X %io/netty/util/concurrent/FailedFuture Z 'java/lang/UnsupportedOperationException \
] $ @(Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Throwable;)V " _
[ ` b scheduledTaskQueue ()Ljava/util/Queue; d e
f java/util/Queue h add (Ljava/lang/Object;)Z j k i l this takeTask ()Ljava/lang/Runnable; java/lang/InterruptedException q "java/util/concurrent/BlockingQueue s peekScheduledTask 0()Lio/netty/util/concurrent/ScheduledFutureTask; u v
w take ()Ljava/lang/Object; y z t { java/lang/Runnable }
delayNanos ()J ?
, ? java/util/concurrent/TimeUnit ? NANOSECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? poll 4(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object; ? ? t ? ? z t ? fetchFromScheduledTaskQueue ? #
? task Ljava/lang/Runnable; e Ljava/lang/InterruptedException;
scheduledTask 1Lio/netty/util/concurrent/ScheduledFutureTask<*>; nanoTime ? ?
? pollScheduledTask (J)Ljava/lang/Runnable; ? ?
? t l pendingTasks ()I size ? ? t ? addTask (Ljava/lang/Runnable;)V java/lang/NullPointerException ? ? (Ljava/lang/String;)V " ?
? ? inEventLoop (Ljava/lang/Thread;)Z ? shutdownGracefully D(JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future; #()Lio/netty/util/concurrent/Future; ?
? quietPeriod timeout unit shutdown Ljava/lang/Deprecated; isShuttingDown ()Z
isShutdown isTerminated awaitTermination #(JLjava/util/concurrent/TimeUnit;)Z awaitInactivity ? java/lang/IllegalStateException ? thread was not started ?
? ? java/lang/Thread ? toMillis ? 9
? ? join (J)V ? ?
? ? isAlive ? ?
? ? execute ? ?
? ? ?
? startThread ? #
?
compareAndSet (ZZ)Z ? ?
V ? "java/util/concurrent/ThreadFactory ? newThread ((Ljava/lang/Runnable;)Ljava/lang/Thread; ? ? ? ? start ? #
? ? t
access$000 1()Lio/netty/util/internal/logging/InternalLogger; ?
access$100 [(Lio/netty/util/concurrent/GlobalEventExecutor;)Ljava/util/concurrent/atomic/AtomicBoolean; x0 4io/netty/util/internal/logging/InternalLoggerFactory ? getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; ? ?
? ? SECONDS ? ? ? ? toNanos ? 9
? ?
$ ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable G(JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future<*>; &()Lio/netty/util/concurrent/Future<*>;
Deprecated RuntimeVisibleAnnotations
Exceptions
SourceFile InnerClasses 1
@ ! " # ? *? %*? 'Y? (? **? ,Y*?
Y*? /? 5? 7? ;? 7u? >? @*? BY*? H? L? O? Q*? Y*? R? T*? VY? W? Y*? [Y*? ]Y? ^? a? c*? g*? @? m W? n &