public class org.glassfish.grizzly.nio.DefaultSelectorHandler implements org.glassfish.grizzly.nio.SelectorHandler
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.nio.DefaultSelectorHandler
super_class: java.lang.Object
{
private static final long DEFAULT_SELECT_TIMEOUT_MILLIS;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 30000
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final boolean IS_WORKAROUND_SELECTOR_SPIN;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
protected final long selectTimeout;
descriptor: J
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private static final int SPIN_RATE_THRESHOLD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2000
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.logger:Ljava/util/logging/Logger;
1: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".force-selector-spin-detection"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
ifne 4
2: ldc "os.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ldc "linux"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 4
3: iconst_0
goto 5
StackMap locals:
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: putstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.IS_WORKAROUND_SELECTOR_SPIN:Z
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
ldc 30000
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler.<init>:(JLjava/util/concurrent/TimeUnit;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
public void <init>(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
2: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 3 1 selectTimeout J
0 3 3 timeunit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
selectTimeout final
timeunit final
public long getSelectTimeout();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
public boolean preSelect(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTasks:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 1 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
public java.util.Set<java.nio.channels.SelectionKey> select(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
astore 2
start local 2 1: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
invokeinterface java.util.Queue.isEmpty:()Z
ifeq 2
iconst_0
goto 3
StackMap locals: java.nio.channels.Selector
StackMap stack:
2: iconst_1
3: StackMap locals:
StackMap stack: int
istore 3
start local 3 4: iload 3
ifne 7
5: aload 2
aload 0
getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
invokevirtual java.nio.channels.Selector.select:(J)I
pop
6: goto 8
7: StackMap locals: int
StackMap stack:
aload 2
invokevirtual java.nio.channels.Selector.selectNow:()I
pop
8: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.channels.Selector.selectedKeys:()Ljava/util/Set;
astore 4
start local 4 9: getstatic org.glassfish.grizzly.nio.DefaultSelectorHandler.IS_WORKAROUND_SELECTOR_SPIN:Z
ifeq 15
10: aload 1
11: aload 4
invokeinterface java.util.Set.isEmpty:()Z
ifeq 12
iload 3
ifne 12
iconst_0
goto 13
StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.Selector int java.util.Set
StackMap stack: org.glassfish.grizzly.nio.SelectorRunner
12: iconst_1
13: StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.Selector int java.util.Set
StackMap stack: org.glassfish.grizzly.nio.SelectorRunner int
sipush 2000
14: invokevirtual org.glassfish.grizzly.nio.SelectorRunner.checkSelectorSpin:(ZI)V
15: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 16 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
1 16 2 selector Ljava/nio/channels/Selector;
4 16 3 hasPostponedTasks Z
9 16 4 selectedKeys Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Ljava/util/Set<Ljava/nio/channels/SelectionKey;>;
MethodParameters:
Name Flags
selectorRunner final
public void postSelect(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 1 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
public void registerKeyInterest(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectionKey, int);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifeq 3
1: aload 2
iload 3
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.registerKey0:(Ljava/nio/channels/SelectionKey;I)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 1
new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask
dup
aload 2
iload 3
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask.<init>:(Ljava/nio/channels/SelectionKey;I)V
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 5 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 5 2 key Ljava/nio/channels/SelectionKey;
0 5 3 interest I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
key final
interest final
private static void registerKey0(java.nio.channels.SelectionKey, int);
descriptor: (Ljava/nio/channels/SelectionKey;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.channels.SelectionKey.isValid:()Z
ifeq 4
1: aload 0
invokevirtual java.nio.channels.SelectionKey.interestOps:()I
istore 2
start local 2 2: iload 2
iload 1
iand
iload 1
if_icmpeq 4
3: aload 0
iload 2
iload 1
ior
invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 selectionKey Ljava/nio/channels/SelectionKey;
0 5 1 interest I
2 4 2 currentOps I
MethodParameters:
Name Flags
selectionKey final
interest final
public void deregisterKeyInterest(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectionKey, int);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.nio.channels.SelectionKey.isValid:()Z
ifeq 4
1: aload 2
invokevirtual java.nio.channels.SelectionKey.interestOps:()I
istore 4
start local 4 2: iload 4
iload 3
iand
ifeq 4
3: aload 2
iload 4
iload 3
iconst_m1
ixor
iand
invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
end local 4 4: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 5 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 5 2 key Ljava/nio/channels/SelectionKey;
0 5 3 interest I
2 4 4 currentOps I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
key final
interest final
public void registerChannel(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, java.lang.Object);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
1: astore 5
start local 5 2: aload 0
aload 1
aload 2
iload 3
3: aload 4
aload 5
invokestatic org.glassfish.grizzly.utils.Futures.toCompletionHandler:(Lorg/glassfish/grizzly/impl/FutureImpl;)Lorg/glassfish/grizzly/CompletionHandler;
4: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.registerChannelAsync:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
5: aload 5
aload 0
getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface org.glassfish.grizzly.impl.FutureImpl.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
6: goto 9
StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel int java.lang.Object org.glassfish.grizzly.impl.FutureImpl
StackMap stack: java.lang.Exception
7: astore 6
start local 6 8: new java.io.IOException
dup
aload 6
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 9: StackMap locals:
StackMap stack:
return
end local 5 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/glassfish/grizzly/nio/DefaultSelectorHandler;
0 10 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 10 2 channel Ljava/nio/channels/SelectableChannel;
0 10 3 interest I
0 10 4 attachment Ljava/lang/Object;
2 10 5 future Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
8 9 6 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
channel final
interest final
attachment final
public void registerChannelAsync(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, , org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifeq 5
1: aload 1
aload 2
iload 3
aload 4
2: aload 5
3: invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.registerChannel0:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
4: goto 10
5: StackMap locals:
StackMap stack:
aload 0
aload 1
6: new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation
dup
7: aload 2
iload 3
aload 4
aload 5
8: invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
9: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
10: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 11 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 11 2 channel Ljava/nio/channels/SelectableChannel;
0 11 3 interest I
0 11 4 attachment Ljava/lang/Object;
0 11 5 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
MethodParameters:
Name Flags
selectorRunner
channel
interest
attachment
completionHandler
public void deregisterChannel(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
1: astore 3
start local 3 2: aload 0
aload 1
aload 2
3: aload 3
invokestatic org.glassfish.grizzly.utils.Futures.toCompletionHandler:(Lorg/glassfish/grizzly/impl/FutureImpl;)Lorg/glassfish/grizzly/CompletionHandler;
4: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.deregisterChannelAsync:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
5: aload 3
aload 0
getfield org.glassfish.grizzly.nio.DefaultSelectorHandler.selectTimeout:J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface org.glassfish.grizzly.impl.FutureImpl.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
6: goto 9
StackMap locals: org.glassfish.grizzly.nio.DefaultSelectorHandler org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.impl.FutureImpl
StackMap stack: java.lang.Exception
7: astore 4
start local 4 8: new java.io.IOException
dup
aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 4 9: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 10 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 10 2 channel Ljava/nio/channels/SelectableChannel;
2 10 3 future Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
8 9 4 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
channel final
public void deregisterChannelAsync(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifeq 5
1: aload 1
aload 2
2: aload 3
3: invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.deregisterChannel0:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
aload 1
new org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation
dup
6: aload 2
aload 3
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
7: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 9 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 9 2 channel Ljava/nio/channels/SelectableChannel;
0 9 3 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
MethodParameters:
Name Flags
selectorRunner final
channel final
completionHandler final
public void execute(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandler$Task, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.SelectorHandler$Task>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifeq 9
1: aload 2
invokeinterface org.glassfish.grizzly.nio.SelectorHandler$Task.run:()Z
pop
2: aload 3
ifnull 12
3: aload 3
aload 2
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
4: goto 12
StackMap locals:
StackMap stack: java.lang.Exception
5: astore 4
start local 4 6: aload 3
ifnull 12
7: aload 3
aload 4
invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
end local 4 8: goto 12
9: StackMap locals:
StackMap stack:
aload 0
aload 1
new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
dup
aload 2
10: aload 3
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
11: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
12: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 13 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 13 2 task Lorg/glassfish/grizzly/nio/SelectorHandler$Task;
0 13 3 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;
6 8 4 e Ljava/lang/Exception;
Exception table:
from to target type
1 4 5 Class java.lang.Exception
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;)V
MethodParameters:
Name Flags
selectorRunner final
task final
completionHandler final
public void enque(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandler$Task, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.SelectorHandler$Task>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.isSelectorRunnerThread:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifeq 5
1: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
2: astore 4
start local 4 3: aload 4
new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
dup
aload 2
aload 3
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
invokeinterface java.util.Queue.offer:(Ljava/lang/Object;)Z
pop
end local 4 4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
aload 1
new org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
dup
aload 2
6: aload 3
invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask.<init>:(Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler;)V
7: invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
8: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 9 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 9 2 task Lorg/glassfish/grizzly/nio/SelectorHandler$Task;
0 9 3 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;
3 4 4 postponedTasks Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandler$Task;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/SelectorHandler$Task;>;)V
MethodParameters:
Name Flags
selectorRunner final
task final
completionHandler final
private void addPendingTask(org.glassfish.grizzly.nio.SelectorRunner, org.glassfish.grizzly.nio.SelectorHandlerTask);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 3
1: aload 2
invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.cancel:()V
2: return
3: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.addPendingTask:(Lorg/glassfish/grizzly/nio/SelectorHandlerTask;)V
4: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.isStop:()Z
ifeq 7
5: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPendingTasks:()Ljava/util/Queue;
aload 2
invokeinterface java.util.Queue.remove:(Ljava/lang/Object;)Z
ifeq 7
6: aload 2
invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.cancel:()V
7: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 8 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 8 2 task Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
MethodParameters:
Name Flags
selectorRunner final
task final
private boolean processPendingTasks(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.obtainPostponedTasks:()Ljava/util/Queue;
invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTaskQueue:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
ifeq 4
1: aload 1
getfield org.glassfish.grizzly.nio.SelectorRunner.hasPendingTasks:Z
ifeq 3
2: aload 0
aload 1
aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPendingTasks:()Ljava/util/Queue;
invokevirtual org.glassfish.grizzly.nio.DefaultSelectorHandler.processPendingTaskQueue:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
ifeq 4
3: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 5 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
selectorRunner final
private boolean processPendingTaskQueue(org.glassfish.grizzly.nio.SelectorRunner, java.util.Queue<org.glassfish.grizzly.nio.SelectorHandlerTask>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: goto 3
start local 3 1: StackMap locals: org.glassfish.grizzly.nio.SelectorHandlerTask
StackMap stack:
aload 3
aload 1
invokeinterface org.glassfish.grizzly.nio.SelectorHandlerTask.run:(Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
ifne 3
2: iconst_0
ireturn
end local 3 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.nio.SelectorHandlerTask
dup
astore 3
start local 3 4: ifnonnull 1
5: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 6 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 6 2 selectorHandlerTasks Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
1 3 3 selectorHandlerTask Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
4 6 3 selectorHandlerTask Lorg/glassfish/grizzly/nio/SelectorHandlerTask;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;)Z
MethodParameters:
Name Flags
selectorRunner final
selectorHandlerTasks final
private static void registerChannel0(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, int, , org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifeq 24
1: aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
astore 5
start local 5 2: aload 1
aload 5
invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
astore 6
start local 6 3: aload 6
ifnull 4
aload 6
invokevirtual java.nio.channels.SelectionKey.isValid:()Z
ifeq 16
4: StackMap locals: java.nio.channels.Selector java.nio.channels.SelectionKey
StackMap stack:
aload 1
aload 5
iload 2
aload 3
invokevirtual java.nio.channels.SelectableChannel.register:(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;
5: astore 7
start local 7 6: aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
7: invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
8: aload 7
invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.onKeyRegistered:(Ljava/nio/channels/SelectionKey;)V
9: new org.glassfish.grizzly.nio.RegisterChannelResult
dup
aload 0
10: aload 7
aload 1
11: invokespecial org.glassfish.grizzly.nio.RegisterChannelResult.<init>:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;Ljava/nio/channels/SelectableChannel;)V
12: astore 8
start local 8 13: aload 4
ifnull 30
14: aload 4
aload 8
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
end local 8 end local 7 15: goto 30
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getPostponedTasks:()Ljava/util/Queue;
17: astore 7
start local 7 18: new org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation
dup
aload 1
iload 2
19: aload 3
aload 4
20: invokespecial org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation.<init>:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
21: astore 8
start local 8 22: aload 7
aload 8
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 end local 6 end local 5 23: goto 30
24: StackMap locals:
StackMap stack:
aload 4
25: new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
26: invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.failChannelRegistration:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
27: goto 30
StackMap locals:
StackMap stack: java.io.IOException
28: astore 5
start local 5 29: aload 4
aload 5
invokestatic org.glassfish.grizzly.nio.DefaultSelectorHandler.failChannelRegistration:(Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
end local 5 30: StackMap locals:
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 31 0 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 31 1 channel Ljava/nio/channels/SelectableChannel;
0 31 2 interest I
0 31 3 attachment Ljava/lang/Object;
0 31 4 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
2 23 5 selector Ljava/nio/channels/Selector;
3 23 6 key Ljava/nio/channels/SelectionKey;
6 15 7 registeredSelectionKey Ljava/nio/channels/SelectionKey;
13 15 8 result Lorg/glassfish/grizzly/nio/RegisterChannelResult;
18 23 7 postponedTasks Ljava/util/Queue<Lorg/glassfish/grizzly/nio/SelectorHandlerTask;>;
22 23 8 operation Lorg/glassfish/grizzly/nio/DefaultSelectorHandler$RegisterChannelOperation;
29 30 5 e Ljava/io/IOException;
Exception table:
from to target type
0 27 28 Class java.io.IOException
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
MethodParameters:
Name Flags
selectorRunner final
channel final
interest final
attachment final
completionHandler final
private static void failChannelRegistration(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>, java.lang.Throwable);
descriptor: (Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnull 2
1: aload 0
aload 1
invokeinterface org.glassfish.grizzly.CompletionHandler.failed:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
0 3 1 error Ljava/lang/Throwable;
Signature: (Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;Ljava/lang/Throwable;)V
MethodParameters:
Name Flags
completionHandler final
error final
private static void deregisterChannel0(org.glassfish.grizzly.nio.SelectorRunner, java.nio.channels.SelectableChannel, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.channels.SelectableChannel.isOpen:()Z
ifeq 17
1: aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getSelector:()Ljava/nio/channels/Selector;
astore 4
start local 4 2: aload 1
aload 4
invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
astore 5
start local 5 3: aload 5
ifnull 15
4: aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
aload 5
invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.cancel:(Ljava/nio/channels/SelectionKey;)V
5: aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getTransport:()Lorg/glassfish/grizzly/nio/NIOTransport;
6: invokevirtual org.glassfish.grizzly.nio.NIOTransport.getSelectionKeyHandler:()Lorg/glassfish/grizzly/nio/SelectionKeyHandler;
7: aload 5
invokeinterface org.glassfish.grizzly.nio.SelectionKeyHandler.onKeyDeregistered:(Ljava/nio/channels/SelectionKey;)V
8: new org.glassfish.grizzly.nio.RegisterChannelResult
dup
aload 0
9: aload 5
aload 1
10: invokespecial org.glassfish.grizzly.nio.RegisterChannelResult.<init>:(Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectionKey;Ljava/nio/channels/SelectableChannel;)V
11: astore 6
start local 6 12: aload 2
ifnull 14
13: aload 2
aload 6
invokeinterface org.glassfish.grizzly.CompletionHandler.completed:(Ljava/lang/Object;)V
14: StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler top java.nio.channels.Selector java.nio.channels.SelectionKey org.glassfish.grizzly.nio.RegisterChannelResult
StackMap stack:
return
end local 6 15: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Channel is not registered"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
astore 3
end local 5 end local 4 start local 3 16: goto 18
end local 3 17: StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler
StackMap stack:
new java.nio.channels.ClosedChannelException
dup
invokespecial java.nio.channels.ClosedChannelException.<init>:()V
astore 3
start local 3 18: StackMap locals: java.lang.Throwable
StackMap stack:
aconst_null
aload 2
aload 3
invokestatic org.glassfish.grizzly.utils.Futures.notifyFailure:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
19: goto 22
end local 3 StackMap locals: org.glassfish.grizzly.nio.SelectorRunner java.nio.channels.SelectableChannel org.glassfish.grizzly.CompletionHandler
StackMap stack: java.io.IOException
20: astore 4
start local 4 21: aconst_null
aload 2
aload 4
invokestatic org.glassfish.grizzly.utils.Futures.notifyFailure:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;Ljava/lang/Throwable;)V
end local 4 22: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
0 23 1 channel Ljava/nio/channels/SelectableChannel;
0 23 2 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
16 17 3 error Ljava/lang/Throwable;
18 20 3 error Ljava/lang/Throwable;
2 16 4 selector Ljava/nio/channels/Selector;
3 16 5 key Ljava/nio/channels/SelectionKey;
12 15 6 result Lorg/glassfish/grizzly/nio/RegisterChannelResult;
21 22 4 e Ljava/io/IOException;
Exception table:
from to target type
0 14 20 Class java.io.IOException
15 19 20 Class java.io.IOException
Signature: (Lorg/glassfish/grizzly/nio/SelectorRunner;Ljava/nio/channels/SelectableChannel;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;)V
MethodParameters:
Name Flags
selectorRunner final
channel final
completionHandler final
public boolean onSelectorClosed(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.workaroundSelectorSpin:()V
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/nio/DefaultSelectorHandler;
0 4 1 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
MethodParameters:
Name Flags
selectorRunner final
private static boolean isSelectorRunnerThread(org.glassfish.grizzly.nio.SelectorRunner);
descriptor: (Lorg/glassfish/grizzly/nio/SelectorRunner;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 3
1: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual org.glassfish.grizzly.nio.SelectorRunner.getRunnerThread:()Ljava/lang/Thread;
if_acmpne 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 selectorRunner Lorg/glassfish/grizzly/nio/SelectorRunner;
MethodParameters:
Name Flags
selectorRunner final
}
SourceFile: "DefaultSelectorHandler.java"
NestMembers:
org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask
InnerClasses:
protected final DeregisterChannelOperation = org.glassfish.grizzly.nio.DefaultSelectorHandler$DeregisterChannelOperation of org.glassfish.grizzly.nio.DefaultSelectorHandler
protected final RegisterChannelOperation = org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterChannelOperation of org.glassfish.grizzly.nio.DefaultSelectorHandler
protected final RegisterKeyTask = org.glassfish.grizzly.nio.DefaultSelectorHandler$RegisterKeyTask of org.glassfish.grizzly.nio.DefaultSelectorHandler
protected final RunnableTask = org.glassfish.grizzly.nio.DefaultSelectorHandler$RunnableTask of org.glassfish.grizzly.nio.DefaultSelectorHandler
public abstract Task = org.glassfish.grizzly.nio.SelectorHandler$Task of org.glassfish.grizzly.nio.SelectorHandler