![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.channel.nio.NioEventLoop.class Maven / Gradle / Ivy
The newest version!
???? 2
??
??
??
???
? ???
? ?????????? ?? ???
? ? ??
?? $? ?? $? ?? ?? ??
????
?????
? ???
$??
&?
???
??
)?? ??????
0??
2?? ??????
8?
$?????
??
??7??
@?
???
D??
D?
D??
D?
D?:
????
N?
???
R?
????
?
Z?
_?
?
??
j
j
j
?
j
j q
q v!v"#
?$
%?&'?()*?+
?,-.
/
?0
1
2
?3 ?4
?5
?6
78
?9
?:
?;
?<= ?
>
??
@
?ABC
?D
?E
FG
?H
?I 0J 0K
0L
qM
jN
jOvPvQvRS wTU
?VWXW wYZ
[
\
?]
?^ ? B@
_
?`
a?bc?d ef
eg ?h
?ij
;k?l
)mno?p
?qr
stu
vwx
vyz
??{|?}~
v?
??????
SelectorTuple InnerClasses logger /Lio/netty/util/internal/logging/InternalLogger; CLEANUP_INTERVAL I
ConstantValue DISABLE_KEY_SET_OPTIMIZATION Z MIN_PREMATURE_SELECTOR_RETURNS SELECTOR_AUTO_REBUILD_THRESHOLD selectNowSupplier Lio/netty/util/IntSupplier; selector Ljava/nio/channels/Selector; unwrappedSelector selectedKeys .Lio/netty/channel/nio/SelectedSelectionKeySet; provider (Ljava/nio/channels/spi/SelectorProvider; wakenUp +Ljava/util/concurrent/atomic/AtomicBoolean; nextWakeupTime J 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;Lio/netty/channel/EventLoopTaskQueueFactory;)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; queueFactory ,Lio/netty/channel/EventLoopTaskQueueFactory;
selectorTuple 1Lio/netty/channel/nio/NioEventLoop$SelectorTuple;
StackMapTableC?????? newTaskQueue ?(Lio/netty/channel/EventLoopTaskQueueFactory;)Ljava/util/Queue; Signature U(Lio/netty/channel/EventLoopTaskQueueFactory;)Ljava/util/Queue; openSelector 3()Lio/netty/channel/nio/NioEventLoop$SelectorTuple; e Ljava/io/IOException; t Ljava/lang/Throwable; Ljava/lang/Exception; maybeSelectorImplClass Ljava/lang/Object; selectorImplClass Ljava/lang/Class; selectedKeySet maybeException LocalVariableTypeTable Ljava/lang/Class<*>;????? *()Ljava/nio/channels/spi/SelectorProvider; (I)Ljava/util/Queue; maxPendingTasks *(I)Ljava/util/Queue;
newTaskQueue0? register G(Ljava/nio/channels/SelectableChannel;ILio/netty/channel/nio/NioTask;)V ignore Ljava/lang/InterruptedException; 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 register0?
getIoRatio ()I
setIoRatio (I)V rebuildSelector ()V registeredChannels rebuildSelector0 newSelectorTuple newKey Ljava/nio/channels/SelectionKey; )Lio/netty/channel/nio/AbstractNioChannel; a key oldSelector nChannels ELio/netty/channel/nio/NioTask;??? run ioTime ioStartTime handleLoopException (Ljava/lang/Throwable;)V processSelectedKeys cleanup cancel #(Ljava/nio/channels/SelectionKey;)V pollTask ()Ljava/lang/Runnable; Ljava/lang/Runnable;? processSelectedKeysPlain (Ljava/util/Set;)V k Ljava/util/Set; i Ljava/util/Iterator; 1Ljava/util/Set; 6Ljava/util/Iterator; 4(Ljava/util/Set;)V processSelectedKeysOptimized processSelectedKey L(Ljava/nio/channels/SelectionKey;Lio/netty/channel/nio/AbstractNioChannel;)V eventLoop Lio/netty/channel/EventLoop; ignored ops readyOps )Ljava/nio/channels/CancelledKeyException; unsafe? NioUnsafe 3Lio/netty/channel/nio/AbstractNioChannel$NioUnsafe;??S 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;?? 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 beforeScheduledTaskSubmitted (J)Z
deadlineNanos afterScheduledTaskSubmitted ()Ljava/nio/channels/Selector; selectNow
Exceptions select
timeoutMillis time selectCnt currentTimeNanos selectDeadLineNanos normalizedDeadlineNanos
oldWakenUp selectRebuildSelector (I)Ljava/nio/channels/Selector; selectAgain
access$000 j(Lio/netty/channel/nio/NioEventLoop;Ljava/nio/channels/SelectableChannel;ILio/netty/channel/nio/NioTask;)V x0 x1 x2 x3
access$100 &(Lio/netty/channel/nio/NioEventLoop;)V Ljava/lang/SecurityException; Ljava/lang/String; bugLevel selectorAutoRebuildThreshold?{
SourceFile NioEventLoop.javaHF?4 ?? #io/netty/channel/nio/NioEventLoop$1 ?? ? ? )java/util/concurrent/atomic/AtomicBoolean ?F ? ? java/lang/Long ? ? ? ? java/lang/NullPointerException ?? ? ? ? ? ? ? ? ?? ?1.?.?? java/io/IOException !io/netty/channel/ChannelException failed to open a new selector ?? ? ? /io/netty/channel/nio/NioEventLoop$SelectorTuple ?? #io/netty/channel/nio/NioEventLoop$3??? java/lang/Class????? java/lang/Throwable ? ? 5failed to instrument a special java.util.Set into: {}??? ,io/netty/channel/nio/SelectedSelectionKeySet #io/netty/channel/nio/NioEventLoop$4 ?? java/lang/Exception ? ? -instrumented a special java.util.Set into: {}?? 4io/netty/channel/nio/SelectedSelectionKeySetSelector ?? ?? java/lang/Integer????. "java/lang/IllegalArgumentException interestOps must be non-zero.??B java/lang/StringBuilder invalid interestOps: ???? (validOps: ?????? java/lang/IllegalStateException event loop shut down?? #io/netty/channel/nio/NioEventLoop$5 ??????? java/lang/InterruptedException????F3? #io/netty/channel/EventLoopException failed to register a channel ioRatio: (expected: 0 < ioRatio <= 100) #io/netty/channel/nio/NioEventLoop$6???????B ? ? Failed to create a new Selector.????????? java/nio/channels/SelectionKey????????9B]F 'io/netty/channel/nio/AbstractNioChannel?K 4Failed to re-register a Channel to the new Selector.u????? io/netty/channel/nio/NioTask???F?? !Failed to close the old Selector.?? Migrated channel(s) to the new Selector.???????????????YZ ? ?[F??????????F?? *Unexpected exception in the selector loop.??lF ??cd Failed to close a selector. !io/netty/channel/nio/NioEventLoop_`?F???Fmnm}? ????Do?sB9??F?F?F 'java/nio/channels/CancelledKeyException?? java/util/ArrayList ?D????? @Unexpected exception while running NioTask.channelUnregistered()???B???????????? ?Selector.select() returned prematurely because Thread.currentThread().interrupt() was called. Use NioEventLoop.shutdownGracefully() to shutdown the NioEventLoop. ?? ? ??? ISelector.select() returned prematurely {} times in a row for Selector {}. ?? # raised by a Selector {} - JDK bug? QSelector.select() returned prematurely {} times in a row; rebuilding Selector {}.??EF Failed to update SelectionKeys.
io.netty.noKeySetOptimization
sun.nio.ch.bugLevel? #io/netty/channel/nio/NioEventLoop$2 java/lang/SecurityException 6Unable to get/set System Property: sun.nio.ch.bugLevel ? %io.netty.selectorAutoRebuildThreshold #-Dio.netty.noKeySetOptimization: {} ? +-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 *io/netty/channel/EventLoopTaskQueueFactory java/nio/channels/Selector java/lang/Object java/util/Queue 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 ?(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ZLjava/util/Queue;Ljava/util/Queue;Lio/netty/util/concurrent/RejectedExecutionHandler;)V (Ljava/lang/String;)V DEFAULT_MAX_PENDING_TASKS *()Ljava/nio/channels/spi/AbstractSelector; *(Ljava/lang/String;Ljava/lang/Throwable;)V (Ljava/nio/channels/Selector;)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 M(Ljava/nio/channels/Selector;Lio/netty/channel/nio/SelectedSelectionKeySet;)V ;(Ljava/nio/channels/Selector;Ljava/nio/channels/Selector;)V (io/netty/util/internal/PlatformDependent newMpscQueue ()Ljava/util/Queue; #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 ()Z submit 7(Ljava/lang/Runnable;)Lio/netty/util/concurrent/Future; io/netty/util/concurrent/Future sync #()Lio/netty/util/concurrent/Future; java/lang/Thread
currentThread ()Ljava/lang/Thread; interrupt Q(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey; execute (Ljava/lang/Runnable;)V ()Ljava/util/Set; size warn iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object;
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
isInfoEnabled info hasTasks calculateStrategy (Lio/netty/util/IntSupplier;Z)I getAndSet (Z)Z get runAllTasks java/lang/System nanoTime ()J isShuttingDown confirmShutdown sleep (J)V isEmpty remove ![Ljava/nio/channels/SelectionKey; reset %()Lio/netty/channel/nio/NioEventLoop; #(I)Ljava/nio/channels/SelectionKey;
finishConnect
forceFlush read channelReady H(Ljava/nio/channels/SelectableChannel;Ljava/nio/channels/SelectionKey;)V add (Ljava/lang/Object;)Z channelUnregistered =(Ljava/nio/channels/SelectableChannel;Ljava/lang/Throwable;)V
compareAndSet (ZZ)Z
delayNanos (J)J initialNanoTime (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 ? ? ? ? B ? ? ? ? ? ? $ ? ? ? E x*+,? ? ? *? Y*? ? *? Y? ?
* ? *2? -?
? Y? ??
? Y? ?*-? *? :*? ? *? ? *? ? ? > ? E ~ * 1 ? 7 ? ; ? E ? J ? T ? Y ? _ ? h ? q ? w ? ? R x ? x x x ? x ? x x
_
? E
? P *?
? ? ?*? ? ? ? ? ? ? ?
? ? ?*? ? L? M? Y!,? "?? #? ? $Y+? %?? &Y*? '? (M,? )? ,? )+? *? +? $,? ,? ,? ,N? -.+-? / ? $Y+? %?,? )N? 0Y? 1:? 2Y*-+? 3? (:? 4? %*? 5? 4:? -.+? / ? $Y+? %?*? 5? -6+? 7 ? $Y+? 8Y+? 9? :? ? b ? ? ? ? ? ? &