
classes.io.netty.channel.nio.NioEventLoop.class Maven / Gradle / Ivy
???? 2?
?? ??
???
? ???
? ???
? ?? ??? ?
? ? ??
?? ?? ??
?????
? ???
??
?
???
??
!?? ??????
(? ?????
??
??
???????
2???
5?
???
9??
9?
9??
9?
9?
????
C?
????
G????
L?
?????
?????????
U?
U?
U?
??
U?
U?? \??
\?X?X??
???
??????????
????
?
??
?
?? ?? ??
??
??
??
??
??
??
?? ?
?
?
?
?
?
????
?
?
\
UX
\X
UX b?
?? b
?
?! ? B@
?"
?#
$?%&?' ()
(* ?+,
2-?.
?/0?1
!2345
678
9:;
9<=
??>??@A
9BC
DE?FGH InnerClasses logger /Lio/netty/util/internal/logging/InternalLogger; CLEANUP_INTERVAL I
ConstantValue DISABLE_KEYSET_OPTIMIZATION Z MIN_PREMATURE_SELECTOR_RETURNS SELECTOR_AUTO_REBUILD_THRESHOLD selectNowSupplier Lio/netty/util/IntSupplier; pendingTasksCallable Ljava/util/concurrent/Callable; Signature 4Ljava/util/concurrent/Callable; selector Ljava/nio/channels/Selector; selectedKeys .Lio/netty/channel/nio/SelectedSelectionKeySet; provider (Ljava/nio/channels/spi/SelectorProvider; wakenUp +Ljava/util/concurrent/atomic/AtomicBoolean; selectStrategy !Lio/netty/channel/SelectStrategy; ioRatio
cancelledKeys needsToSelectAgain ?(Lio/netty/channel/nio/NioEventLoopGroup;Ljava/util/concurrent/Executor;Ljava/nio/channels/spi/SelectorProvider;Lio/netty/channel/SelectStrategy;Lio/netty/util/concurrent/RejectedExecutionHandler;)V Code LineNumberTable LocalVariableTable this #Lio/netty/channel/nio/NioEventLoop; parent (Lio/netty/channel/nio/NioEventLoopGroup; executor Ljava/util/concurrent/Executor; selectorProvider strategy rejectedExecutionHandler 3Lio/netty/util/concurrent/RejectedExecutionHandler;
StackMapTable5IJKLM openSelector ()Ljava/nio/channels/Selector; e Ljava/io/IOException; Ljava/lang/Exception; selectedKeySet maybeSelectorImplClass Ljava/lang/Object; selectorImplClass Ljava/lang/Class; maybeException LocalVariableTypeTable Ljava/lang/Class<*>;?N?O? *()Ljava/nio/channels/spi/SelectorProvider; newTaskQueue (I)Ljava/util/Queue; maxPendingTasks *(I)Ljava/util/Queue; pendingTasks ()I register G(Ljava/nio/channels/SelectableChannel;ILio/netty/channel/nio/NioTask;)V ch %Ljava/nio/channels/SelectableChannel; interestOps task Lio/netty/channel/nio/NioTask; !Lio/netty/channel/nio/NioTask<*>;? J(Ljava/nio/channels/SelectableChannel;ILio/netty/channel/nio/NioTask<*>;)V
getIoRatio
setIoRatio (I)V rebuildSelector ()V newSelector newKey Ljava/nio/channels/SelectionKey; )Lio/netty/channel/nio/AbstractNioChannel; a key i$ Ljava/util/Iterator; +Ljava/util/ConcurrentModificationException; t Ljava/lang/Throwable; oldSelector nChannels ELio/netty/channel/nio/NioTask;P??? run ioStartTime J ioTime processSelectedKeys cleanup cancel #(Ljava/nio/channels/SelectionKey;)V pollTask ()Ljava/lang/Runnable; Ljava/lang/Runnable;Q processSelectedKeysPlain (Ljava/util/Set;)V k Ljava/util/Set; i 1Ljava/util/Set; 6Ljava/util/Iterator; 4(Ljava/util/Set;)V processSelectedKeysOptimized $([Ljava/nio/channels/SelectionKey;)V ![Ljava/nio/channels/SelectionKey; processSelectedKey L(Ljava/nio/channels/SelectionKey;Lio/netty/channel/nio/AbstractNioChannel;)V eventLoop Lio/netty/channel/EventLoop; ignored ops readyOps )Ljava/nio/channels/CancelledKeyException; unsafeR NioUnsafe 3Lio/netty/channel/nio/AbstractNioChannel$NioUnsafe;?RS A(Ljava/nio/channels/SelectionKey;Lio/netty/channel/nio/NioTask;)V state h(Ljava/nio/channels/SelectionKey;Lio/netty/channel/nio/NioTask;)V closeAll keys channels Ljava/util/Collection; ALjava/util/Collection;TU invokeChannelUnregistered V(Lio/netty/channel/nio/NioTask;Ljava/nio/channels/SelectionKey;Ljava/lang/Throwable;)V cause }(Lio/netty/channel/nio/NioTask;Ljava/nio/channels/SelectionKey;Ljava/lang/Throwable;)V wakeup (Z)V inEventLoop selectNow
Exceptions select
timeoutMillis time selectCnt currentTimeNanos selectDeadLineNanos
oldWakenUp selectAgain
access$001 &(Lio/netty/channel/nio/NioEventLoop;)I x0 Ljava/lang/SecurityException; Ljava/lang/String; buglevel selectorAutoRebuildThresholdV>
SourceFile NioEventLoop.javaW ? ?X #io/netty/channel/nio/NioEventLoop$1 ?Y ? ? #io/netty/channel/nio/NioEventLoop$2 ? ? )java/util/concurrent/atomic/AtomicBoolean ?$ ? ? ? ? java/lang/NullPointerException ?Z ? ? ? ? ? ? ? ?K ?[ java/io/IOException !io/netty/channel/ChannelException failed to open a new selector ?\ ? ? ,io/netty/channel/nio/SelectedSelectionKeySet #io/netty/channel/nio/NioEventLoop$4]^_ java/lang/ClassO`abc java/lang/Exception ? ? 5failed to instrument a special java.util.Set into: {}def #io/netty/channel/nio/NioEventLoop$5 ?g ? ? -instrumented a special java.util.Set into: {}ehijoklmnopqr java/lang/Integers "java/lang/IllegalArgumentException interestOps must be non-zero.tu java/lang/StringBuilder invalid interestOps: vwvx (validOps: vyz{|k java/lang/IllegalStateException event loop shut down} #io/netty/channel/EventLoopException failed to register a channel ioRatio: (expected: 0 < ioRatio <= 100) #io/netty/channel/nio/NioEventLoop$6~ Failed to create a new Selector.?\Nc?T??P?k?r java/nio/channels/SelectionKey?r?k????>$ 'io/netty/channel/nio/AbstractNioChannel?' 4Failed to re-register a Channel to the new Selector.W????? io/netty/channel/nio/NioTaskij )java/util/ConcurrentModificationException?$ java/lang/Throwable?k !Failed to close the old Selector. Migrated channel(s) to the new Selector.?Z?kL????rn?km ? ? ? ? ?<$?k??????kb$?k *Unexpected exception in the selector loop.??? java/lang/InterruptedException??LM ??DE Failed to close a selector.@Ay$?k?$OPO_Q?U?$?k?$??$ 'java/nio/channels/CancelledKeyException?? java/util/ArrayList? ?"U???? @Unexpected exception while running NioTask.channelUnregistered()??p??r??k?k?k ?Selector.select() returned prematurely because Thread.currentThread().interrupt() was called. Use NioEventLoop.shutdownGracefully() to shutdown the NioEventLoop.?Z????? ? ? QSelector.select() returned prematurely {} times in a row; rebuilding Selector {}.???f#$ ISelector.select() returned prematurely {} times in a row for Selector {}.?f?{ # raised by a Selector {} - JDK bug? Failed to update SelectionKeys. !io/netty/channel/nio/NioEventLoop??? io.netty.noKeySetOptimization??? sun.nio.ch.bugLevel?? #io/netty/channel/nio/NioEventLoop$3 java/lang/SecurityException 6Unable to get/set System Property: sun.nio.ch.bugLevel?\ %io.netty.selectorAutoRebuildThreshold?? #-Dio.netty.noKeySetOptimization: {}????h +-Dio.netty.selectorAutoRebuildThreshold: {} &io/netty/channel/SingleThreadEventLoop &io/netty/channel/nio/NioEventLoopGroup java/util/concurrent/Executor &java/nio/channels/spi/SelectorProvider io/netty/channel/SelectStrategy 1io/netty/util/concurrent/RejectedExecutionHandler java/nio/channels/Selector java/lang/Object java/util/Iterator java/lang/Runnable 1io/netty/channel/nio/AbstractNioChannel$NioUnsafe io/netty/channel/EventLoop
java/util/Set java/util/Collection java/lang/String DEFAULT_MAX_PENDING_TASKS x(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ZILio/netty/util/concurrent/RejectedExecutionHandler;)V &(Lio/netty/channel/nio/NioEventLoop;)V (Ljava/lang/String;)V *()Ljava/nio/channels/spi/AbstractSelector; *(Ljava/lang/String;Ljava/lang/Throwable;)V java/security/AccessController doPrivileged 4(Ljava/security/PrivilegedAction;)Ljava/lang/Object; getClass ()Ljava/lang/Class; isAssignableFrom (Ljava/lang/Class;)Z -io/netty/util/internal/logging/InternalLogger trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ?(Lio/netty/channel/nio/NioEventLoop;Ljava/lang/Class;Ljava/nio/channels/Selector;Lio/netty/channel/nio/SelectedSelectionKeySet;)V '(Ljava/lang/String;Ljava/lang/Object;)V (io/netty/util/internal/PlatformDependent newMpscQueue ()Z submit B(Ljava/util/concurrent/Callable;)Lio/netty/util/concurrent/Future; io/netty/util/concurrent/Future syncUninterruptibly #()Lio/netty/util/concurrent/Future; getNow ()Ljava/lang/Object; intValue #java/nio/channels/SelectableChannel validOps append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; toString ()Ljava/lang/String;
isShutdown Q(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey; execute (Ljava/lang/Runnable;)V warn ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext next
attachment isValid channel '()Ljava/nio/channels/SelectableChannel; keyFor >(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey; selectionKey 5()Lio/netty/channel/nio/AbstractNioChannel$NioUnsafe; voidPromise #()Lio/netty/channel/ChannelPromise; close $(Lio/netty/channel/ChannelPromise;)V
isWarnEnabled info hasTasks calculateStrategy (Lio/netty/util/IntSupplier;Z)I getAndSet (Z)Z get runAllTasks java/lang/System nanoTime ()J (J)Z isShuttingDown confirmShutdown java/lang/Thread sleep (J)V flip #()[Ljava/nio/channels/SelectionKey; isEmpty remove %()Lio/netty/channel/nio/NioEventLoop; read isOpen
forceFlush #(I)Ljava/nio/channels/SelectionKey;
finishConnect channelReady H(Ljava/nio/channels/SelectableChannel;Ljava/nio/channels/SelectionKey;)V size add (Ljava/lang/Object;)Z channelUnregistered =(Ljava/nio/channels/SelectableChannel;Ljava/lang/Throwable;)V
compareAndSet (ZZ)Z
delayNanos (J)J (J)I hasScheduledTasks interrupted isDebugEnabled debug java/util/concurrent/TimeUnit MILLISECONDS Ljava/util/concurrent/TimeUnit; toNanos valueOf (I)Ljava/lang/Integer;
getSimpleName 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; )io/netty/util/internal/SystemPropertyUtil
getBoolean (Ljava/lang/String;Z)Z &(Ljava/lang/String;)Ljava/lang/String; getInt (Ljava/lang/String;I)I java/lang/Boolean (Z)Ljava/lang/Boolean; 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? B ? ? ? ? ? ? ? ? ? f*+,? ? *? Y*? ? *? Y*? ? *?
Y? ? *2?
-?
? Y? ??
? Y? ?*-? **? ? *? ? ? 6
? D J $ ? / ? 5 ? 9 ? C ? H ? R ? W ? _ ? e ? ? > f ? ? f ? ? f ? ? f ? ? f ? ? f ? ? ? ? C ? ? ? ? ? ? ? ? ? ? ?*? ? L? M? Y,? ?? ? +?? Y? M? Y*? ? N-? !? -? !+? "? #? -? $? -? $:? %&+? ' +?-? !:? (Y*+,? )? :? $? *? *? $:? %&+? ' ? *,? *? %++? , +? ? ^ ? ? ? ? ? ? ? ' ? 3 ? H ? O ? U ? b ? d ? j ? { ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? f
? ? ? U
? ?
? ? ? ? ? ? ? ' ? ? 3 ~ j G { 6 j G ? " K
? ? (
? :
? ? / *? ? ? ? ? ? ? ? 9 ? -? ? ? ? ? ? ? ? ? ` %*? .? *? ?**? ? /? 0 ? 1 ? 2? 3? ? ? ? ? ? % ? ? ? ? E ?+?
? Y4? ??
? 5Y6? 7?+? 8?~? /? 5Y? 9Y? :;? <? =>? <+? 8? =)? ?? @? 7?-?
? YA? ?*? B?
? CYD? E?+*? -? FW? :? GYH? I?? r } ? $ ? > ' S W
a h r } ? ? ? ? 4 ? ? ? ? ? ? ? ? ? ? ?
6
M
? ? / *?
? ? ? ? ? !" ? z 0? d? #? 5Y? 9Y? :J? <? =K?