io.netty.channel.ThreadPerChannelEventLoopGroup.class Maven / Gradle / Ivy
???? 2\ /io/netty/channel/ThreadPerChannelEventLoopGroup 3io/netty/util/concurrent/AbstractEventExecutorGroup io/netty/channel/EventLoopGroup #ThreadPerChannelEventLoopGroup.java 1io/netty/channel/ThreadPerChannelEventLoopGroup$1 childArgs [Ljava/lang/Object; maxChannels I executor Ljava/util/concurrent/Executor; activeChildren Ljava/util/Set; -Ljava/util/Set; idleChildren Ljava/util/Queue; /Ljava/util/Queue; tooManyChannels #Lio/netty/channel/ChannelException; shuttingDown Z terminationFuture "Lio/netty/util/concurrent/Promise; %Lio/netty/util/concurrent/Promise<*>; childTerminationListener )Lio/netty/util/concurrent/FutureListener; =Lio/netty/util/concurrent/FutureListener; ()V (I)V "
# this 1Lio/netty/channel/ThreadPerChannelEventLoopGroup; java/util/concurrent/Executors ' defaultThreadFactory &()Ljava/util/concurrent/ThreadFactory; ) *
( + java/lang/Object - ;(ILjava/util/concurrent/ThreadFactory;[Ljava/lang/Object;)V /
0 .io/netty/util/concurrent/ThreadPerTaskExecutor 2 '(Ljava/util/concurrent/ThreadFactory;)V 4
3 5 6(ILjava/util/concurrent/Executor;[Ljava/lang/Object;)V 7
8
threadFactory $Ljava/util/concurrent/ThreadFactory; args !
= (io/netty/util/internal/PlatformDependent ? newConcurrentHashMap &()Ljava/util/concurrent/ConcurrentMap; A B
@ C java/util/Collections E
newSetFromMap (Ljava/util/Map;)Ljava/util/Set; G H
F I K *java/util/concurrent/ConcurrentLinkedQueue M
N = P 'io/netty/util/concurrent/DefaultPromise R ,io/netty/util/concurrent/GlobalEventExecutor T INSTANCE .Lio/netty/util/concurrent/GlobalEventExecutor; V W U X +(Lio/netty/util/concurrent/EventExecutor;)V Z
S [ ] 4(Lio/netty/channel/ThreadPerChannelEventLoopGroup;)V _
` b "java/lang/IllegalArgumentException d maxChannels: %d (expected: >= 0) f java/lang/Integer h valueOf (I)Ljava/lang/Integer; j k
i l java/lang/String n format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; p q
o r (Ljava/lang/String;)V t
e u java/util/concurrent/Executor w java/lang/NullPointerException z
{ u "io/netty/util/internal/EmptyArrays ~
EMPTY_OBJECTS ? ?
? clone ()Ljava/lang/Object; ? ?
y ?
? ? !io/netty/channel/ChannelException ? java/lang/StringBuilder ?
? = too many channels (max: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ?
? u nextChild() ? $io/netty/util/internal/ThrowableUtil ? unknownStackTrace O(Ljava/lang/Throwable;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Throwable; ? ?
? ? ? newChild 1([Ljava/lang/Object;)Lio/netty/channel/EventLoop; java/lang/Exception ? *io/netty/channel/ThreadPerChannelEventLoop ?
? ` iterator ()Ljava/util/Iterator; 'io/netty/util/internal/ReadOnlyIterator ?
java/util/Set ? ? ? ? ? (Ljava/util/Iterator;)V ?
? ? next ()Lio/netty/channel/EventLoop; 'java/lang/UnsupportedOperationException ?
? = shutdownGracefully D(JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future; ? java/util/Iterator ? hasNext ()Z ? ? ? ? ? ? ? ? io/netty/channel/EventLoop ? ? ? ? ? java/util/Queue ? ? ? isTerminated ? ?
? io/netty/util/concurrent/Promise ?
trySuccess (Ljava/lang/Object;)Z ? ? ? ? #()Lio/netty/util/concurrent/Future; ?
? l Lio/netty/channel/EventLoop; quietPeriod J timeout unit Ljava/util/concurrent/TimeUnit; shutdown Ljava/lang/Deprecated; ? ! ? ? isShuttingDown ? ? ? ?
isShutdown ? ? ? ? ? ? awaitTermination #(JLjava/util/concurrent/TimeUnit;)Z java/lang/InterruptedException ? java/lang/System ? nanoTime ()J ? ?
? ? java/util/concurrent/TimeUnit ? toNanos (J)J
NANOSECONDS ? ? ? ? timeLeft deadline register <(Lio/netty/channel/Channel;)Lio/netty/channel/ChannelFuture; java/lang/Throwable channel nextChild ?
&io/netty/channel/DefaultChannelPromise E(Lio/netty/channel/Channel;Lio/netty/util/concurrent/EventExecutor;)V
C(Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture; ? $io/netty/channel/FailedChannelFuture Z(Lio/netty/channel/Channel;Lio/netty/util/concurrent/EventExecutor;Ljava/lang/Throwable;)V
t Ljava/lang/Throwable; Lio/netty/channel/Channel; io/netty/channel/ChannelPromise%
setFailure 8(Ljava/lang/Throwable;)Lio/netty/channel/ChannelPromise;'(&) promise !Lio/netty/channel/ChannelPromise; ](Lio/netty/channel/Channel;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;- ?. /java/util/concurrent/RejectedExecutionException0
shutting down2
1 u poll5 ? ?6 size ()I89 ?: ? ?
< ? ? io/netty/util/concurrent/Future? addListener S(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;AB@C addE ? ?F loop *()Lio/netty/util/concurrent/EventExecutor; ? ?
J
access$000 U(Lio/netty/channel/ThreadPerChannelEventLoopGroup;)Lio/netty/util/concurrent/Promise; x0 Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions @()Ljava/util/Iterator; G(JJLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/Future<*>; &()Lio/netty/util/concurrent/Future<*>;
Deprecated RuntimeVisibleAnnotations
SourceFile InnerClasses !
O O B O O ! P 4 *? $? Q % &