public class org.eclipse.jetty.io.ManagedSelector extends org.eclipse.jetty.util.component.ContainerLifeCycle implements org.eclipse.jetty.util.component.Dumpable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.io.ManagedSelector
super_class: org.eclipse.jetty.util.component.ContainerLifeCycle
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean FORCE_SELECT_NOW;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.atomic.AtomicBoolean _started;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean _selecting;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final org.eclipse.jetty.io.SelectorManager _selectorManager;
descriptor: Lorg/eclipse/jetty/io/SelectorManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int _id;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.eclipse.jetty.util.thread.ExecutionStrategy _strategy;
descriptor: Lorg/eclipse/jetty/util/thread/ExecutionStrategy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.channels.Selector _selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0002) ACC_PRIVATE
private java.util.Deque<org.eclipse.jetty.io.ManagedSelector$SelectorUpdate> _updates;
descriptor: Ljava/util/Deque;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Deque<Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;>;
private java.util.Deque<org.eclipse.jetty.io.ManagedSelector$SelectorUpdate> _updateable;
descriptor: Ljava/util/Deque;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Deque<Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lorg/eclipse/jetty/io/ManagedSelector;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
1: ldc "org.eclipse.jetty.io.forceSelectNow"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 2: aload 0
ifnull 5
3: aload 0
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
putstatic org.eclipse.jetty.io.ManagedSelector.FORCE_SELECT_NOW:Z
4: goto 9
5: StackMap locals: java.lang.String
StackMap stack:
ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
6: aload 0
ifnull 7
aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "windows"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 7
iconst_1
goto 8
StackMap locals:
StackMap stack:
7: iconst_0
StackMap locals:
StackMap stack: int
8: putstatic org.eclipse.jetty.io.ManagedSelector.FORCE_SELECT_NOW:Z
end local 0 9: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 9 0 property Ljava/lang/String;
public void <init>(org.eclipse.jetty.io.SelectorManager, int);
descriptor: (Lorg/eclipse/jetty/io/SelectorManager;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.eclipse.jetty.util.component.ContainerLifeCycle.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:(Z)V
putfield org.eclipse.jetty.io.ManagedSelector._started:Ljava/util/concurrent/atomic/AtomicBoolean;
2: aload 0
iconst_0
putfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
3: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield org.eclipse.jetty.io.ManagedSelector._updates:Ljava/util/Deque;
4: aload 0
new java.util.ArrayDeque
dup
invokespecial java.util.ArrayDeque.<init>:()V
putfield org.eclipse.jetty.io.ManagedSelector._updateable:Ljava/util/Deque;
5: aload 0
aload 1
putfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
6: aload 0
iload 2
putfield org.eclipse.jetty.io.ManagedSelector._id:I
7: new org.eclipse.jetty.io.ManagedSelector$SelectorProducer
dup
aload 0
invokespecial org.eclipse.jetty.io.ManagedSelector$SelectorProducer.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;)V
astore 3
start local 3 8: aload 1
invokevirtual org.eclipse.jetty.io.SelectorManager.getExecutor:()Ljava/util/concurrent/Executor;
astore 4
start local 4 9: aload 0
new org.eclipse.jetty.util.thread.strategy.EatWhatYouKill
dup
aload 3
aload 4
invokespecial org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.<init>:(Lorg/eclipse/jetty/util/thread/ExecutionStrategy$Producer;Ljava/util/concurrent/Executor;)V
putfield org.eclipse.jetty.io.ManagedSelector._strategy:Lorg/eclipse/jetty/util/thread/ExecutionStrategy;
10: aload 0
aload 0
getfield org.eclipse.jetty.io.ManagedSelector._strategy:Lorg/eclipse/jetty/util/thread/ExecutionStrategy;
iconst_1
invokevirtual org.eclipse.jetty.io.ManagedSelector.addBean:(Ljava/lang/Object;Z)Z
pop
11: aload 0
ldc 5000
invokevirtual org.eclipse.jetty.io.ManagedSelector.setStopTimeout:(J)V
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 13 1 selectorManager Lorg/eclipse/jetty/io/SelectorManager;
0 13 2 id I
8 13 3 producer Lorg/eclipse/jetty/io/ManagedSelector$SelectorProducer;
9 13 4 executor Ljava/util/concurrent/Executor;
MethodParameters:
Name Flags
selectorManager
id
public java.nio.channels.Selector getSelector();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/io/ManagedSelector;
protected void doStart();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokespecial org.eclipse.jetty.util.component.ContainerLifeCycle.doStart:()V
1: aload 0
aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
invokevirtual org.eclipse.jetty.io.SelectorManager.newSelector:()Ljava/nio/channels/Selector;
putfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
2: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 0
getfield org.eclipse.jetty.io.ManagedSelector._strategy:Lorg/eclipse/jetty/util/thread/ExecutionStrategy;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic run(Lorg/eclipse/jetty/util/thread/ExecutionStrategy;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
org/eclipse/jetty/util/thread/ExecutionStrategy.produce()V (9 itf)
()V
invokevirtual org.eclipse.jetty.io.SelectorManager.execute:(Ljava/lang/Runnable;)V
3: new org.eclipse.jetty.io.ManagedSelector$Start
dup
aload 0
invokespecial org.eclipse.jetty.io.ManagedSelector$Start.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;)V
astore 2
start local 2 4: aload 0
aload 2
invokevirtual org.eclipse.jetty.io.ManagedSelector.submit:(Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;)V
5: aload 2
getfield org.eclipse.jetty.io.ManagedSelector$Start._started:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
6: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/io/ManagedSelector;
4 7 2 start Lorg/eclipse/jetty/io/ManagedSelector$Start;
Exceptions:
throws java.lang.Exception
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.nio.channels.Selector
StackMap stack:
aload 1
invokevirtual java.nio.channels.Selector.keys:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/io/ManagedSelector;
1 4 1 s Ljava/nio/channels/Selector;
protected void doStop();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._started:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_1
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 7
1: new org.eclipse.jetty.io.ManagedSelector$CloseConnections
dup
aload 0
invokespecial org.eclipse.jetty.io.ManagedSelector$CloseConnections.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;)V
astore 1
start local 1 2: aload 0
aload 1
invokevirtual org.eclipse.jetty.io.ManagedSelector.submit:(Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;)V
3: aload 1
getfield org.eclipse.jetty.io.ManagedSelector$CloseConnections._complete:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
4: new org.eclipse.jetty.io.ManagedSelector$StopSelector
dup
aload 0
invokespecial org.eclipse.jetty.io.ManagedSelector$StopSelector.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;)V
astore 2
start local 2 5: aload 0
aload 2
invokevirtual org.eclipse.jetty.io.ManagedSelector.submit:(Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;)V
6: aload 2
getfield org.eclipse.jetty.io.ManagedSelector$StopSelector._stopped:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.await:()V
end local 2 end local 1 7: StackMap locals:
StackMap stack:
aload 0
invokespecial org.eclipse.jetty.util.component.ContainerLifeCycle.doStop:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/io/ManagedSelector;
2 7 1 closeConnections Lorg/eclipse/jetty/io/ManagedSelector$CloseConnections;
5 7 2 stopSelector Lorg/eclipse/jetty/io/ManagedSelector$StopSelector;
Exceptions:
throws java.lang.Exception
public void submit(org.eclipse.jetty.io.ManagedSelector$SelectorUpdate);
descriptor: (Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 2
1: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Queued change {} on {}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
dup
astore 3
monitorenter
4: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._updates:Ljava/util/Deque;
aload 1
invokeinterface java.util.Deque.offer:(Ljava/lang/Object;)Z
pop
5: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
ifeq 8
6: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
astore 2
7: aload 0
iconst_0
putfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
8: StackMap locals: java.nio.channels.Selector org.eclipse.jetty.io.ManagedSelector
StackMap stack:
aload 3
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 3
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
aload 2
ifnull 16
13: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 15
14: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Wakeup on submit {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 17 1 update Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;
3 17 2 selector Ljava/nio/channels/Selector;
Exception table:
from to target type
4 9 10 any
10 11 10 any
MethodParameters:
Name Flags
update
private void wakeup();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=1
start local 0 0: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 2
1: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Wakeup {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
dup
astore 2
monitorenter
4: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
ifeq 7
5: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
astore 1
6: aload 0
iconst_0
putfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
7: StackMap locals: java.nio.channels.Selector org.eclipse.jetty.io.ManagedSelector
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 1
ifnull 13
12: aload 1
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/eclipse/jetty/io/ManagedSelector;
3 14 1 selector Ljava/nio/channels/Selector;
Exception table:
from to target type
4 8 9 any
9 10 9 any
private void execute(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 1
invokevirtual org.eclipse.jetty.io.SelectorManager.execute:(Ljava/lang/Runnable;)V
1: goto 5
2: StackMap locals:
StackMap stack: java.util.concurrent.RejectedExecutionException
pop
3: aload 1
instanceof java.io.Closeable
ifeq 5
4: aload 1
checkcast java.io.Closeable
invokestatic org.eclipse.jetty.io.ManagedSelector.closeNoExceptions:(Ljava/io/Closeable;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 6 1 task Ljava/lang/Runnable;
Exception table:
from to target type
0 1 2 Class java.util.concurrent.RejectedExecutionException
MethodParameters:
Name Flags
task
private void processConnect(java.nio.channels.SelectionKey, org.eclipse.jetty.io.ManagedSelector$Connect);
descriptor: (Ljava/nio/channels/SelectionKey;Lorg/eclipse/jetty/io/ManagedSelector$Connect;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.channels.SelectionKey.channel:()Ljava/nio/channels/SelectableChannel;
astore 3
start local 3 1: aload 1
aload 2
getfield org.eclipse.jetty.io.ManagedSelector$Connect.attachment:Ljava/lang/Object;
invokevirtual java.nio.channels.SelectionKey.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 3
invokevirtual org.eclipse.jetty.io.SelectorManager.doFinishConnect:(Ljava/nio/channels/SelectableChannel;)Z
istore 4
start local 4 3: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 5
4: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Connected {} {}"
iconst_2
anewarray java.lang.Object
dup
iconst_0
iload 4
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
dup
iconst_1
aload 3
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
5: StackMap locals: java.nio.channels.SelectableChannel int
StackMap stack:
iload 4
ifeq 11
6: aload 2
getfield org.eclipse.jetty.io.ManagedSelector$Connect.timeout:Lorg/eclipse/jetty/util/thread/Scheduler$Task;
invokeinterface org.eclipse.jetty.util.thread.Scheduler$Task.cancel:()Z
ifeq 10
7: aload 1
iconst_0
invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
8: aload 0
new org.eclipse.jetty.io.ManagedSelector$CreateEndPoint
dup
aload 0
aload 2
aload 1
invokespecial org.eclipse.jetty.io.ManagedSelector$CreateEndPoint.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;Lorg/eclipse/jetty/io/ManagedSelector$Connect;Ljava/nio/channels/SelectionKey;)V
invokevirtual org.eclipse.jetty.io.ManagedSelector.execute:(Ljava/lang/Runnable;)V
9: goto 14
10: StackMap locals:
StackMap stack:
new java.net.SocketTimeoutException
dup
ldc "Concurrent Connect Timeout"
invokespecial java.net.SocketTimeoutException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
new java.net.ConnectException
dup
invokespecial java.net.ConnectException.<init>:()V
athrow
end local 4 12: StackMap locals: org.eclipse.jetty.io.ManagedSelector java.nio.channels.SelectionKey org.eclipse.jetty.io.ManagedSelector$Connect java.nio.channels.SelectableChannel
StackMap stack: java.lang.Throwable
astore 4
start local 4 13: aload 2
aload 4
invokevirtual org.eclipse.jetty.io.ManagedSelector$Connect.failed:(Ljava/lang/Throwable;)V
end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 15 1 key Ljava/nio/channels/SelectionKey;
0 15 2 connect Lorg/eclipse/jetty/io/ManagedSelector$Connect;
1 15 3 channel Ljava/nio/channels/SelectableChannel;
3 12 4 connected Z
13 14 4 x Ljava/lang/Throwable;
Exception table:
from to target type
1 12 12 Class java.lang.Throwable
MethodParameters:
Name Flags
key
connect final
private static void closeNoExceptions(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnull 5
1: aload 0
invokeinterface java.io.Closeable.close:()V
2: goto 5
3: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 4: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 closeable Ljava/io/Closeable;
4 5 1 x Ljava/lang/Throwable;
Exception table:
from to target type
0 2 3 Class java.lang.Throwable
MethodParameters:
Name Flags
closeable
private void createEndPoint(java.nio.channels.SelectableChannel, java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectableChannel;Ljava/nio/channels/SelectionKey;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 1
aload 0
aload 2
invokevirtual org.eclipse.jetty.io.SelectorManager.newEndPoint:(Ljava/nio/channels/SelectableChannel;Lorg/eclipse/jetty/io/ManagedSelector;Ljava/nio/channels/SelectionKey;)Lorg/eclipse/jetty/io/EndPoint;
astore 3
start local 3 1: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 1
aload 3
aload 2
invokevirtual java.nio.channels.SelectionKey.attachment:()Ljava/lang/Object;
invokevirtual org.eclipse.jetty.io.SelectorManager.newConnection:(Ljava/nio/channels/SelectableChannel;Lorg/eclipse/jetty/io/EndPoint;Ljava/lang/Object;)Lorg/eclipse/jetty/io/Connection;
astore 4
start local 4 2: aload 3
aload 4
invokeinterface org.eclipse.jetty.io.EndPoint.setConnection:(Lorg/eclipse/jetty/io/Connection;)V
3: aload 2
aload 3
invokevirtual java.nio.channels.SelectionKey.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 3
invokeinterface org.eclipse.jetty.io.EndPoint.onOpen:()V
5: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 3
invokevirtual org.eclipse.jetty.io.SelectorManager.endPointOpened:(Lorg/eclipse/jetty/io/EndPoint;)V
6: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selectorManager:Lorg/eclipse/jetty/io/SelectorManager;
aload 4
invokevirtual org.eclipse.jetty.io.SelectorManager.connectionOpened:(Lorg/eclipse/jetty/io/Connection;)V
7: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 9
8: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "Created {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
9: StackMap locals: org.eclipse.jetty.io.EndPoint org.eclipse.jetty.io.Connection
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 10 1 channel Ljava/nio/channels/SelectableChannel;
0 10 2 selectionKey Ljava/nio/channels/SelectionKey;
1 10 3 endPoint Lorg/eclipse/jetty/io/EndPoint;
2 10 4 connection Lorg/eclipse/jetty/io/Connection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
channel
selectionKey
public void destroyEndPoint(org.eclipse.jetty.io.EndPoint, java.lang.Throwable);
descriptor: (Lorg/eclipse/jetty/io/EndPoint;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.eclipse.jetty.io.ManagedSelector.wakeup:()V
1: aload 0
new org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint
dup
aload 0
aload 1
aload 2
invokespecial org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint.<init>:(Lorg/eclipse/jetty/io/ManagedSelector;Lorg/eclipse/jetty/io/EndPoint;Ljava/lang/Throwable;)V
invokevirtual org.eclipse.jetty.io.ManagedSelector.execute:(Ljava/lang/Runnable;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 3 1 endPoint Lorg/eclipse/jetty/io/EndPoint;
0 3 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
endPoint final
cause
private int getActionSize();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._updates:Ljava/util/Deque;
invokeinterface java.util.Deque.size:()I
aload 1
monitorexit
2: ireturn
3: StackMap locals: org.eclipse.jetty.io.ManagedSelector org.eclipse.jetty.io.ManagedSelector
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/io/ManagedSelector;
Exception table:
from to target type
1 2 3 any
3 4 3 any
static int safeReadyOps(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.channels.SelectionKey.readyOps:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 3: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
4: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 selectionKey Ljava/nio/channels/SelectionKey;
3 5 1 x Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
selectionKey
static int safeInterestOps(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.channels.SelectionKey.interestOps:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 3: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
4: iconst_m1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 selectionKey Ljava/nio/channels/SelectionKey;
3 5 1 x Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
MethodParameters:
Name Flags
selectionKey
public void dump(java.lang.Appendable, java.lang.String);
descriptor: (Ljava/lang/Appendable;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
astore 5
start local 5 1: aload 5
ifnull 24
aload 5
invokevirtual java.nio.channels.Selector.isOpen:()Z
ifeq 24
2: new org.eclipse.jetty.io.ManagedSelector$DumpKeys
dup
invokespecial org.eclipse.jetty.io.ManagedSelector$DumpKeys.<init>:()V
astore 6
start local 6 3: getstatic java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME:Ljava/time/format/DateTimeFormatter;
invokestatic java.time.ZonedDateTime.now:()Ljava/time/ZonedDateTime;
invokevirtual java.time.format.DateTimeFormatter.format:(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;
astore 7
start local 7 4: aload 0
dup
astore 8
monitorenter
5: new java.util.ArrayList
dup
aload 0
getfield org.eclipse.jetty.io.ManagedSelector._updates:Ljava/util/Deque;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 4
start local 4 6: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._updates:Ljava/util/Deque;
aload 6
invokeinterface java.util.Deque.addFirst:(Ljava/lang/Object;)V
7: aload 0
iconst_0
putfield org.eclipse.jetty.io.ManagedSelector._selecting:Z
8: aload 8
monitorexit
9: goto 12
end local 4 StackMap locals: org.eclipse.jetty.io.ManagedSelector java.lang.Appendable java.lang.String top top java.nio.channels.Selector org.eclipse.jetty.io.ManagedSelector$DumpKeys java.lang.String org.eclipse.jetty.io.ManagedSelector
StackMap stack: java.lang.Throwable
10: aload 8
monitorexit
11: athrow
start local 4 12: StackMap locals: org.eclipse.jetty.io.ManagedSelector java.lang.Appendable java.lang.String top java.util.List java.nio.channels.Selector org.eclipse.jetty.io.ManagedSelector$DumpKeys java.lang.String
StackMap stack:
getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
invokeinterface org.eclipse.jetty.util.log.Logger.isDebugEnabled:()Z
ifeq 14
13: getstatic org.eclipse.jetty.io.ManagedSelector.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "wakeup on dump {}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.channels.Selector.wakeup:()Ljava/nio/channels/Selector;
pop
15: aload 6
ldc 5
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.eclipse.jetty.io.ManagedSelector$DumpKeys.get:(JLjava/util/concurrent/TimeUnit;)Ljava/util/List;
astore 3
start local 3 16: getstatic java.time.format.DateTimeFormatter.ISO_OFFSET_DATE_TIME:Ljava/time/format/DateTimeFormatter;
invokestatic java.time.ZonedDateTime.now:()Ljava/time/ZonedDateTime;
invokevirtual java.time.format.DateTimeFormatter.format:(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;
astore 8
start local 8 17: aload 3
ifnonnull 19
18: ldc "No dump keys retrieved"
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
astore 3
19: StackMap locals: org.eclipse.jetty.io.ManagedSelector java.lang.Appendable java.lang.String java.util.List java.util.List java.nio.channels.Selector org.eclipse.jetty.io.ManagedSelector$DumpKeys java.lang.String java.lang.String
StackMap stack:
aload 0
aload 1
aload 2
iconst_2
anewarray java.lang.Object
dup
iconst_0
20: new org.eclipse.jetty.util.component.DumpableCollection
dup
new java.lang.StringBuilder
dup
ldc "updates @ "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial org.eclipse.jetty.util.component.DumpableCollection.<init>:(Ljava/lang/String;Ljava/util/Collection;)V
aastore
dup
iconst_1
21: new org.eclipse.jetty.util.component.DumpableCollection
dup
new java.lang.StringBuilder
dup
ldc "keys @ "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.eclipse.jetty.util.component.DumpableCollection.<init>:(Ljava/lang/String;Ljava/util/Collection;)V
aastore
22: invokevirtual org.eclipse.jetty.io.ManagedSelector.dumpObjects:(Ljava/lang/Appendable;Ljava/lang/String;[Ljava/lang/Object;)V
end local 8 end local 7 end local 6 23: goto 25
end local 4 end local 3 24: StackMap locals: org.eclipse.jetty.io.ManagedSelector java.lang.Appendable java.lang.String top top java.nio.channels.Selector
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
anewarray java.lang.Object
invokevirtual org.eclipse.jetty.io.ManagedSelector.dumpObjects:(Ljava/lang/Appendable;Ljava/lang/String;[Ljava/lang/Object;)V
25: StackMap locals:
StackMap stack:
return
end local 5 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/eclipse/jetty/io/ManagedSelector;
0 26 1 out Ljava/lang/Appendable;
0 26 2 indent Ljava/lang/String;
16 24 3 keys Ljava/util/List<Ljava/lang/String;>;
6 10 4 updates Ljava/util/List<Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;>;
12 24 4 updates Ljava/util/List<Lorg/eclipse/jetty/io/ManagedSelector$SelectorUpdate;>;
1 26 5 selector Ljava/nio/channels/Selector;
3 23 6 dump Lorg/eclipse/jetty/io/ManagedSelector$DumpKeys;
4 23 7 updatesAt Ljava/lang/String;
17 23 8 keysAt Ljava/lang/String;
Exception table:
from to target type
5 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
indent
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._selector:Ljava/nio/channels/Selector;
astore 1
start local 1 1: ldc "%s id=%s keys=%d selected=%d updates=%d"
iconst_5
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokespecial org.eclipse.jetty.util.component.ContainerLifeCycle.toString:()Ljava/lang/String;
aastore
dup
iconst_1
3: aload 0
getfield org.eclipse.jetty.io.ManagedSelector._id:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
4: aload 1
ifnull 5
aload 1
invokevirtual java.nio.channels.Selector.isOpen:()Z
ifeq 5
aload 1
invokevirtual java.nio.channels.Selector.keys:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
goto 6
StackMap locals: org.eclipse.jetty.io.ManagedSelector java.nio.channels.Selector
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
5: iconst_m1
StackMap locals: org.eclipse.jetty.io.ManagedSelector java.nio.channels.Selector
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int int
6: invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
7: aload 1
ifnull 8
aload 1
invokevirtual java.nio.channels.Selector.isOpen:()Z
ifeq 8
aload 1
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
invokeinterface java.util.Set.size:()I
goto 9
StackMap locals: org.eclipse.jetty.io.ManagedSelector java.nio.channels.Selector
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
8: iconst_m1
StackMap locals: org.eclipse.jetty.io.ManagedSelector java.nio.channels.Selector
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int int
9: invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
10: aload 0
invokevirtual org.eclipse.jetty.io.ManagedSelector.getActionSize:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
11: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/eclipse/jetty/io/ManagedSelector;
1 12 1 selector Ljava/nio/channels/Selector;
}
SourceFile: "ManagedSelector.java"
NestMembers:
org.eclipse.jetty.io.ManagedSelector$Accept org.eclipse.jetty.io.ManagedSelector$Acceptor org.eclipse.jetty.io.ManagedSelector$CloseConnections org.eclipse.jetty.io.ManagedSelector$Connect org.eclipse.jetty.io.ManagedSelector$CreateEndPoint org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint org.eclipse.jetty.io.ManagedSelector$DumpKeys org.eclipse.jetty.io.ManagedSelector$Selectable org.eclipse.jetty.io.ManagedSelector$SelectorProducer org.eclipse.jetty.io.ManagedSelector$SelectorUpdate org.eclipse.jetty.io.ManagedSelector$Start org.eclipse.jetty.io.ManagedSelector$StopSelector
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
Accept = org.eclipse.jetty.io.ManagedSelector$Accept of org.eclipse.jetty.io.ManagedSelector
Acceptor = org.eclipse.jetty.io.ManagedSelector$Acceptor of org.eclipse.jetty.io.ManagedSelector
private CloseConnections = org.eclipse.jetty.io.ManagedSelector$CloseConnections of org.eclipse.jetty.io.ManagedSelector
Connect = org.eclipse.jetty.io.ManagedSelector$Connect of org.eclipse.jetty.io.ManagedSelector
private final CreateEndPoint = org.eclipse.jetty.io.ManagedSelector$CreateEndPoint of org.eclipse.jetty.io.ManagedSelector
private DestroyEndPoint = org.eclipse.jetty.io.ManagedSelector$DestroyEndPoint of org.eclipse.jetty.io.ManagedSelector
private DumpKeys = org.eclipse.jetty.io.ManagedSelector$DumpKeys of org.eclipse.jetty.io.ManagedSelector
public abstract Selectable = org.eclipse.jetty.io.ManagedSelector$Selectable of org.eclipse.jetty.io.ManagedSelector
private SelectorProducer = org.eclipse.jetty.io.ManagedSelector$SelectorProducer of org.eclipse.jetty.io.ManagedSelector
public abstract SelectorUpdate = org.eclipse.jetty.io.ManagedSelector$SelectorUpdate of org.eclipse.jetty.io.ManagedSelector
private Start = org.eclipse.jetty.io.ManagedSelector$Start of org.eclipse.jetty.io.ManagedSelector
private StopSelector = org.eclipse.jetty.io.ManagedSelector$StopSelector of org.eclipse.jetty.io.ManagedSelector
public abstract Producer = org.eclipse.jetty.util.thread.ExecutionStrategy$Producer of org.eclipse.jetty.util.thread.ExecutionStrategy
public abstract Task = org.eclipse.jetty.util.thread.Scheduler$Task of org.eclipse.jetty.util.thread.Scheduler