final class org.xnio.nio.NioTcpServerHandle extends org.xnio.nio.NioHandle implements org.xnio.nio.ChannelClosed
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.xnio.nio.NioTcpServerHandle
super_class: org.xnio.nio.NioHandle
{
private final java.lang.Runnable freeTask;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.xnio.nio.NioTcpServer server;
descriptor: Lorg/xnio/nio/NioTcpServer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int low;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int high;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int tokenCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean stopped;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/xnio/nio/NioTcpServerHandle;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.xnio.nio.NioTcpServerHandle.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.xnio.nio.NioTcpServer, java.nio.channels.SelectionKey, org.xnio.nio.WorkerThread, int, int);
descriptor: (Lorg/xnio/nio/NioTcpServer;Ljava/nio/channels/SelectionKey;Lorg/xnio/nio/WorkerThread;II)V
flags: (0x0000)
Code:
stack=4, 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 0
aload 3
aload 2
invokespecial org.xnio.nio.NioHandle.<init>:(Lorg/xnio/nio/WorkerThread;Ljava/nio/channels/SelectionKey;)V
1: aload 0
iconst_m1
putfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
2: aload 0
aload 1
putfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
3: aload 0
iload 4
putfield org.xnio.nio.NioTcpServerHandle.low:I
4: aload 0
iload 5
putfield org.xnio.nio.NioTcpServerHandle.high:I
5: aload 0
new org.xnio.nio.NioTcpServerHandle$1
dup
aload 0
invokespecial org.xnio.nio.NioTcpServerHandle$1.<init>:(Lorg/xnio/nio/NioTcpServerHandle;)V
putfield org.xnio.nio.NioTcpServerHandle.freeTask:Ljava/lang/Runnable;
6: 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 7 0 this Lorg/xnio/nio/NioTcpServerHandle;
0 7 1 server Lorg/xnio/nio/NioTcpServer;
0 7 2 key Ljava/nio/channels/SelectionKey;
0 7 3 thread Lorg/xnio/nio/WorkerThread;
0 7 4 low I
0 7 5 high I
MethodParameters:
Name Flags
server final
key final
thread final
low final
high final
void handleReady(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
invokevirtual org.xnio.nio.NioTcpServer.getAcceptListener:()Lorg/xnio/ChannelListener;
invokestatic org.xnio.ChannelListeners.invokeChannelListener:(Ljava/nio/channels/Channel;Lorg/xnio/ChannelListener;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xnio/nio/NioTcpServerHandle;
0 2 1 ops I
MethodParameters:
Name Flags
ops final
void forceTermination();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
invokestatic org.xnio.IoUtils.safeClose:(Ljava/io/Closeable;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xnio/nio/NioTcpServerHandle;
void terminated();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
invokevirtual org.xnio.nio.NioTcpServer.invokeCloseHandler:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xnio/nio/NioTcpServerHandle;
java.lang.Runnable getFreeTask();
descriptor: ()Ljava/lang/Runnable;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.xnio.nio.NioTcpServerHandle.freeTask:Ljava/lang/Runnable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/xnio/nio/NioTcpServerHandle;
void resume();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 1
start local 1 1: aload 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 4
2: aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifne 5
aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
getfield org.xnio.nio.NioTcpServer.resumed:Z
ifeq 5
aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.resume:(I)V
3: goto 5
4: StackMap locals: org.xnio.nio.WorkerThread
StackMap stack:
aload 1
new org.xnio.nio.NioTcpServerHandle$2
dup
aload 0
invokespecial org.xnio.nio.NioTcpServerHandle$2.<init>:(Lorg/xnio/nio/NioTcpServerHandle;)V
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/xnio/nio/NioTcpServerHandle;
1 6 1 thread Lorg/xnio/nio/WorkerThread;
void suspend();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 1
start local 1 1: aload 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 5
2: aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifne 3
aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
getfield org.xnio.nio.NioTcpServer.resumed:Z
ifne 6
StackMap locals: org.xnio.nio.WorkerThread
StackMap stack:
3: aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.suspend:(I)V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 1
new org.xnio.nio.NioTcpServerHandle$3
dup
aload 0
invokespecial org.xnio.nio.NioTcpServerHandle$3.<init>:(Lorg/xnio/nio/NioTcpServerHandle;)V
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/xnio/nio/NioTcpServerHandle;
1 7 1 thread Lorg/xnio/nio/WorkerThread;
public void channelClosed();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 1
start local 1 1: aload 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 4
2: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.freeConnection:()V
3: goto 5
4: StackMap locals: org.xnio.nio.WorkerThread
StackMap stack:
aload 1
aload 0
getfield org.xnio.nio.NioTcpServerHandle.freeTask:Ljava/lang/Runnable;
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/xnio/nio/NioTcpServerHandle;
1 6 1 thread Lorg/xnio/nio/WorkerThread;
void freeConnection();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.xnio.nio.NioTcpServerHandle.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.xnio.nio.NioTcpServerHandle.count:I
dup_x1
iconst_1
isub
putfield org.xnio.nio.NioTcpServerHandle.count:I
aload 0
getfield org.xnio.nio.NioTcpServerHandle.low:I
if_icmpgt 5
aload 0
getfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
ifeq 5
aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifeq 5
2: aload 0
iconst_0
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
3: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
getfield org.xnio.nio.NioTcpServer.resumed:Z
ifeq 5
4: aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.resume:(I)V
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/xnio/nio/NioTcpServerHandle;
void setTokenCount(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 2
start local 2 1: aload 2
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 10
2: aload 0
getfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
ifne 9
3: aload 0
iload 1
putfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
4: aload 0
getfield org.xnio.nio.NioTcpServerHandle.count:I
aload 0
getfield org.xnio.nio.NioTcpServerHandle.low:I
if_icmpgt 8
aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifeq 8
5: aload 0
iconst_0
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
6: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
getfield org.xnio.nio.NioTcpServer.resumed:Z
ifeq 8
7: aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.resume:(I)V
8: StackMap locals: org.xnio.nio.WorkerThread
StackMap stack:
return
9: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.xnio.nio.WorkerThread.getNextThread:()Lorg/xnio/nio/WorkerThread;
astore 2
10: StackMap locals:
StackMap stack:
aload 0
aload 2
iload 1
invokevirtual org.xnio.nio.NioTcpServerHandle.setThreadNewCount:(Lorg/xnio/nio/WorkerThread;I)V
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/xnio/nio/NioTcpServerHandle;
0 12 1 newCount I
1 12 2 workerThread Lorg/xnio/nio/WorkerThread;
MethodParameters:
Name Flags
newCount final
private void setThreadNewCount(org.xnio.nio.WorkerThread, int);
descriptor: (Lorg/xnio/nio/WorkerThread;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.xnio.nio.WorkerThread.getNumber:()I
istore 3
start local 3 1: aload 1
new org.xnio.nio.NioTcpServerHandle$4
dup
aload 0
iload 3
iload 2
invokespecial org.xnio.nio.NioTcpServerHandle$4.<init>:(Lorg/xnio/nio/NioTcpServerHandle;II)V
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/xnio/nio/NioTcpServerHandle;
0 3 1 workerThread Lorg/xnio/nio/WorkerThread;
0 3 2 newCount I
1 3 3 number I
MethodParameters:
Name Flags
workerThread final
newCount final
void initializeTokenCount(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 2
start local 2 1: aload 2
invokevirtual org.xnio.nio.WorkerThread.getNumber:()I
istore 3
start local 3 2: aload 2
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 8
3: aload 0
iload 1
putfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
4: iload 1
ifne 9
5: aload 0
iconst_1
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
6: aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.suspend:(I)V
7: goto 9
8: StackMap locals: org.xnio.nio.WorkerThread int
StackMap stack:
aload 2
new org.xnio.nio.NioTcpServerHandle$5
dup
aload 0
iload 3
iload 1
invokespecial org.xnio.nio.NioTcpServerHandle$5.<init>:(Lorg/xnio/nio/NioTcpServerHandle;II)V
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
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/xnio/nio/NioTcpServerHandle;
0 10 1 newCount I
1 10 2 workerThread Lorg/xnio/nio/WorkerThread;
2 10 3 number I
MethodParameters:
Name Flags
newCount final
boolean getConnection();
descriptor: ()Z
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.xnio.nio.NioTcpServerHandle.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifeq 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
iconst_m1
if_icmpeq 5
aload 0
dup
getfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
iconst_1
isub
dup_x1
putfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
ifne 5
4: aload 0
aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
invokevirtual org.xnio.nio.WorkerThread.getNextThread:()Lorg/xnio/nio/WorkerThread;
aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
invokevirtual org.xnio.nio.NioTcpServer.getTokenConnectionCount:()I
invokevirtual org.xnio.nio.NioTcpServerHandle.setThreadNewCount:(Lorg/xnio/nio/WorkerThread;I)V
5: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.xnio.nio.NioTcpServerHandle.count:I
iconst_1
iadd
dup_x1
putfield org.xnio.nio.NioTcpServerHandle.count:I
aload 0
getfield org.xnio.nio.NioTcpServerHandle.high:I
if_icmpge 6
aload 0
getfield org.xnio.nio.NioTcpServerHandle.tokenCount:I
ifne 8
6: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
7: aload 0
bipush 16
invokespecial org.xnio.nio.NioHandle.suspend:(I)V
8: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/xnio/nio/NioTcpServerHandle;
public void executeSetTask(int, int);
descriptor: (II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
astore 3
start local 3 1: aload 3
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
if_acmpne 12
2: aload 0
iload 1
putfield org.xnio.nio.NioTcpServerHandle.high:I
3: aload 0
iload 2
putfield org.xnio.nio.NioTcpServerHandle.low:I
4: aload 0
getfield org.xnio.nio.NioTcpServerHandle.count:I
iload 1
if_icmplt 8
aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifne 8
5: aload 0
iconst_1
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
6: aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.suspend:()V
7: goto 13
StackMap locals: org.xnio.nio.WorkerThread
StackMap stack:
8: aload 0
getfield org.xnio.nio.NioTcpServerHandle.count:I
iload 2
if_icmpgt 13
aload 0
getfield org.xnio.nio.NioTcpServerHandle.stopped:Z
ifeq 13
9: aload 0
iconst_0
putfield org.xnio.nio.NioTcpServerHandle.stopped:Z
10: aload 0
getfield org.xnio.nio.NioTcpServerHandle.server:Lorg/xnio/nio/NioTcpServer;
getfield org.xnio.nio.NioTcpServer.resumed:Z
ifeq 13
aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.resume:()V
11: goto 13
12: StackMap locals:
StackMap stack:
aload 3
new org.xnio.nio.NioTcpServerHandle$6
dup
aload 0
iload 1
iload 2
invokespecial org.xnio.nio.NioTcpServerHandle$6.<init>:(Lorg/xnio/nio/NioTcpServerHandle;II)V
invokevirtual org.xnio.nio.WorkerThread.execute:(Ljava/lang/Runnable;)V
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/xnio/nio/NioTcpServerHandle;
0 14 1 high I
0 14 2 low I
1 14 3 thread Lorg/xnio/nio/WorkerThread;
MethodParameters:
Name Flags
high final
low final
int getConnectionCount();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.xnio.nio.NioTcpServerHandle.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 0
invokevirtual org.xnio.nio.NioTcpServerHandle.getWorkerThread:()Lorg/xnio/nio/WorkerThread;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.xnio.nio.NioTcpServerHandle.count:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/xnio/nio/NioTcpServerHandle;
}
SourceFile: "NioTcpServerHandle.java"
NestMembers:
org.xnio.nio.NioTcpServerHandle$1 org.xnio.nio.NioTcpServerHandle$2 org.xnio.nio.NioTcpServerHandle$3 org.xnio.nio.NioTcpServerHandle$4 org.xnio.nio.NioTcpServerHandle$5 org.xnio.nio.NioTcpServerHandle$6
InnerClasses:
org.xnio.nio.NioTcpServerHandle$1
org.xnio.nio.NioTcpServerHandle$2
org.xnio.nio.NioTcpServerHandle$3
org.xnio.nio.NioTcpServerHandle$4
org.xnio.nio.NioTcpServerHandle$5
org.xnio.nio.NioTcpServerHandle$6