public final class org.glassfish.grizzly.nio.transport.TCPNIOServerConnection extends org.glassfish.grizzly.nio.transport.TCPNIOConnection
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection
super_class: org.glassfish.grizzly.nio.transport.TCPNIOConnection
{
private static boolean DISABLE_INTERRUPT_CLEAR;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.glassfish.grizzly.impl.FutureImpl<org.glassfish.grizzly.Connection> acceptListener;
descriptor: Lorg/glassfish/grizzly/impl/FutureImpl;
flags: (0x0002) ACC_PRIVATE
Signature: Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/Connection;>;
private final org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler defaultCompletionHandler;
descriptor: Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object acceptSync;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
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 "_DISABLE_INTERRUPT_CLEAR"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "false"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.valueOf:(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
1: putstatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.DISABLE_INTERRUPT_CLEAR:Z
2: ldc Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.LOGGER:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.nio.transport.TCPNIOTransport, java.nio.channels.ServerSocketChannel);
descriptor: (Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;Ljava/nio/channels/ServerSocketChannel;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOConnection.<init>:(Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;Ljava/nio/channels/SelectableChannel;)V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptSync:Ljava/lang/Object;
2: aload 0
new org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
dup
aload 0
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler.<init>:(Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;)V
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.defaultCompletionHandler:Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 4 1 transport Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;
0 4 2 serverSocketChannel Ljava/nio/channels/ServerSocketChannel;
MethodParameters:
Name Flags
transport
serverSocketChannel
public void listen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
checkcast org.glassfish.grizzly.nio.transport.TCPNIOTransport
getfield org.glassfish.grizzly.nio.transport.TCPNIOTransport.selectorRegistrationHandler:Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport$RegisterChannelCompletionHandler;
astore 1
start local 1 1: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
astore 2
start local 2 2: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getNIOChannelDistributor:()Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.channel:Ljava/nio/channels/SelectableChannel;
bipush 16
aload 0
3: new org.glassfish.grizzly.utils.CompletionHandlerAdapter
dup
aload 2
aload 1
invokespecial org.glassfish.grizzly.utils.CompletionHandlerAdapter.<init>:(Lorg/glassfish/grizzly/impl/FutureImpl;Lorg/glassfish/grizzly/CompletionHandler;)V
4: invokeinterface org.glassfish.grizzly.nio.NIOChannelDistributor.registerServiceChannelAsync:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
5: aload 2
ldc 10
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface org.glassfish.grizzly.impl.FutureImpl.get:(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
pop
6: goto 11
StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection org.glassfish.grizzly.CompletionHandler org.glassfish.grizzly.impl.FutureImpl
StackMap stack: java.util.concurrent.ExecutionException
7: astore 3
start local 3 8: aload 3
invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
invokestatic org.glassfish.grizzly.utils.Exceptions.makeIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
athrow
end local 3 9: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 10: aload 3
invokestatic org.glassfish.grizzly.utils.Exceptions.makeIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
athrow
end local 3 11: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.notifyReady:()Z
pop
12: aload 0
invokestatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.notifyProbesBind:(Lorg/glassfish/grizzly/nio/NIOConnection;)V
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
1 14 1 registerCompletionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
2 14 2 future Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
8 9 3 e Ljava/util/concurrent/ExecutionException;
10 11 3 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.util.concurrent.ExecutionException
5 6 9 Class java.lang.Exception
Exceptions:
throws java.io.IOException
public boolean isBlocking();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.isBlocking:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
public boolean isStandalone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.isStandalone:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
public org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> accept();
descriptor: ()Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.isStandalone:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Accept could be used in standalone mode only"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptAsync:()Lorg/glassfish/grizzly/GrizzlyFuture;
astore 1
start local 1 3: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.isBlocking:()Z
ifeq 7
4: aload 1
invokeinterface org.glassfish.grizzly.GrizzlyFuture.get:()Ljava/lang/Object;
pop
5: goto 7
StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection org.glassfish.grizzly.GrizzlyFuture
StackMap stack: java.lang.Exception
6: pop
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
3 8 1 future Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Connection;>;
Exception table:
from to target type
4 5 6 Class java.lang.Exception
Exceptions:
throws java.io.IOException
Signature: ()Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Connection;>;
protected org.glassfish.grizzly.GrizzlyFuture<org.glassfish.grizzly.Connection> acceptAsync();
descriptor: ()Lorg/glassfish/grizzly/GrizzlyFuture;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.isOpen:()Z
ifne 2
1: new java.io.IOException
dup
ldc "Connection is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptSync:Ljava/lang/Object;
dup
astore 1
monitorenter
3: invokestatic org.glassfish.grizzly.impl.SafeFutureImpl.create:()Lorg/glassfish/grizzly/impl/SafeFutureImpl;
astore 2
start local 2 4: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.doAccept:()Ljava/nio/channels/SocketChannel;
astore 3
start local 3 5: aload 3
ifnull 10
6: aload 0
aload 3
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.configureAcceptedChannel:(Ljava/nio/channels/SocketChannel;)V
7: aload 0
aload 3
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.createClientConnection:(Ljava/nio/channels/SocketChannel;)Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
astore 4
start local 4 8: aload 0
aload 4
new org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
dup
aload 0
aload 2
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler.<init>:(Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;Lorg/glassfish/grizzly/impl/FutureImpl;)V
iconst_0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.registerAcceptedChannel:(Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;Lorg/glassfish/grizzly/CompletionHandler;I)V
end local 4 9: goto 12
10: StackMap locals: java.lang.Object org.glassfish.grizzly.impl.FutureImpl java.nio.channels.SocketChannel
StackMap stack:
aload 0
aload 2
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
11: aload 0
getstatic org.glassfish.grizzly.IOEvent.SERVER_ACCEPT:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.enableIOEvent:(Lorg/glassfish/grizzly/IOEvent;)V
12: StackMap locals:
StackMap stack:
aload 2
aload 1
monitorexit
13: areturn
end local 3 end local 2 14: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
15: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
4 14 2 future Lorg/glassfish/grizzly/impl/FutureImpl<Lorg/glassfish/grizzly/Connection;>;
5 14 3 acceptedChannel Ljava/nio/channels/SocketChannel;
8 9 4 clientConnection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
Exception table:
from to target type
3 13 14 any
14 15 14 any
Exceptions:
throws java.io.IOException
Signature: ()Lorg/glassfish/grizzly/GrizzlyFuture<Lorg/glassfish/grizzly/Connection;>;
private java.nio.channels.SocketChannel doAccept();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.DISABLE_INTERRUPT_CLEAR:Z
ifne 2
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.isInterrupted:()Z
ifeq 2
1: invokestatic java.lang.Thread.interrupted:()Z
pop
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.getChannel:()Ljava/nio/channels/SelectableChannel;
checkcast java.nio.channels.ServerSocketChannel
invokevirtual java.nio.channels.ServerSocketChannel.accept:()Ljava/nio/channels/SocketChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
Exceptions:
throws java.io.IOException
private void configureAcceptedChannel(java.nio.channels.SocketChannel);
descriptor: (Ljava/nio/channels/SocketChannel;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
checkcast org.glassfish.grizzly.nio.transport.TCPNIOTransport
astore 2
start local 2 1: aload 2
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOTransport.getChannelConfigurator:()Lorg/glassfish/grizzly/nio/ChannelConfigurator;
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
aload 1
invokeinterface org.glassfish.grizzly.nio.ChannelConfigurator.preConfigure:(Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/nio/channels/SelectableChannel;)V
2: aload 2
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOTransport.getChannelConfigurator:()Lorg/glassfish/grizzly/nio/ChannelConfigurator;
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
aload 1
invokeinterface org.glassfish.grizzly.nio.ChannelConfigurator.postConfigure:(Lorg/glassfish/grizzly/nio/NIOTransport;Ljava/nio/channels/SelectableChannel;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 4 1 acceptedChannel Ljava/nio/channels/SocketChannel;
1 4 2 tcpNIOTransport Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
acceptedChannel final
private org.glassfish.grizzly.nio.transport.TCPNIOConnection createClientConnection(java.nio.channels.SocketChannel);
descriptor: (Ljava/nio/channels/SocketChannel;)Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
checkcast org.glassfish.grizzly.nio.transport.TCPNIOTransport
astore 2
start local 2 1: aload 2
aload 1
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOTransport.obtainNIOConnection:(Ljava/nio/channels/SocketChannel;)Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
astore 3
start local 3 2: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.processor:Lorg/glassfish/grizzly/Processor;
ifnull 4
3: aload 3
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.processor:Lorg/glassfish/grizzly/Processor;
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOConnection.setProcessor:(Lorg/glassfish/grizzly/Processor;)V
4: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOTransport org.glassfish.grizzly.nio.transport.TCPNIOConnection
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
ifnull 6
5: aload 3
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.processorSelector:Lorg/glassfish/grizzly/ProcessorSelector;
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOConnection.setProcessorSelector:(Lorg/glassfish/grizzly/ProcessorSelector;)V
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOConnection.resetProperties:()V
7: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 8 1 acceptedChannel Ljava/nio/channels/SocketChannel;
1 8 2 tcpNIOTransport Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;
2 8 3 connection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
MethodParameters:
Name Flags
acceptedChannel final
private void registerAcceptedChannel(org.glassfish.grizzly.nio.transport.TCPNIOConnection, org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.nio.RegisterChannelResult>, );
descriptor: (Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;Lorg/glassfish/grizzly/CompletionHandler;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
checkcast org.glassfish.grizzly.nio.transport.TCPNIOTransport
astore 4
start local 4 1: aload 4
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOTransport.getNIOChannelDistributor:()Lorg/glassfish/grizzly/nio/NIOChannelDistributor;
aload 1
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOConnection.getChannel:()Ljava/nio/channels/SelectableChannel;
iload 3
aload 1
2: aload 2
3: invokeinterface org.glassfish.grizzly.nio.NIOChannelDistributor.registerChannelAsync:(Ljava/nio/channels/SelectableChannel;ILjava/lang/Object;Lorg/glassfish/grizzly/CompletionHandler;)V
4: return
end local 4 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/transport/TCPNIOServerConnection;
0 5 1 acceptedConnection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
0 5 2 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;
0 5 3 initialSelectionKeyInterest I
1 5 4 tcpNIOTransport Lorg/glassfish/grizzly/nio/transport/TCPNIOTransport;
Exceptions:
throws java.io.IOException
Signature: (Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/nio/RegisterChannelResult;>;I)V
MethodParameters:
Name Flags
acceptedConnection final
completionHandler final
initialSelectionKeyInterest final
public void preClose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
ifnull 2
1: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
new java.io.IOException
dup
ldc "Connection is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokeinterface org.glassfish.grizzly.impl.FutureImpl.failure:(Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
aload 0
invokevirtual org.glassfish.grizzly.nio.NIOTransport.unbind:(Lorg/glassfish/grizzly/Connection;)V
3: aload 0
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOConnection.preClose:()V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
public void onAccept();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.isStandalone:()Z
ifne 9
1: aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.doAccept:()Ljava/nio/channels/SocketChannel;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: return
4: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection top java.nio.channels.SocketChannel
StackMap stack:
aload 0
aload 2
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.configureAcceptedChannel:(Ljava/nio/channels/SocketChannel;)V
5: aload 0
aload 2
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.createClientConnection:(Ljava/nio/channels/SocketChannel;)Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
astore 1
start local 1 6: aload 0
aload 1
invokestatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.notifyProbesAccept:(Lorg/glassfish/grizzly/nio/NIOConnection;Lorg/glassfish/grizzly/nio/NIOConnection;)V
7: aload 0
aload 1
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.defaultCompletionHandler:Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler;
iconst_1
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.registerAcceptedChannel:(Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;Lorg/glassfish/grizzly/CompletionHandler;I)V
end local 2 8: goto 27
end local 1 9: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection
StackMap stack:
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptSync:Ljava/lang/Object;
dup
astore 2
monitorenter
10: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
ifnonnull 14
11: aload 0
getstatic org.glassfish.grizzly.IOEvent.SERVER_ACCEPT:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.disableIOEvent:(Lorg/glassfish/grizzly/IOEvent;)V
12: aload 2
monitorexit
13: return
14: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection top java.lang.Object
StackMap stack:
aload 0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.doAccept:()Ljava/nio/channels/SocketChannel;
astore 3
start local 3 15: aload 3
ifnonnull 18
16: aload 2
monitorexit
17: return
18: StackMap locals: java.nio.channels.SocketChannel
StackMap stack:
aload 0
aload 3
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.configureAcceptedChannel:(Ljava/nio/channels/SocketChannel;)V
19: aload 0
aload 3
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.createClientConnection:(Ljava/nio/channels/SocketChannel;)Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
astore 1
start local 1 20: aload 0
aload 1
invokestatic org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.notifyProbesAccept:(Lorg/glassfish/grizzly/nio/NIOConnection;Lorg/glassfish/grizzly/nio/NIOConnection;)V
21: aload 0
aload 1
new org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
dup
aload 0
aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler.<init>:(Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;Lorg/glassfish/grizzly/impl/FutureImpl;)V
iconst_0
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.registerAcceptedChannel:(Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;Lorg/glassfish/grizzly/CompletionHandler;I)V
22: aload 0
aconst_null
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.acceptListener:Lorg/glassfish/grizzly/impl/FutureImpl;
end local 3 23: aload 2
monitorexit
24: goto 27
end local 1 StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection top java.lang.Object
StackMap stack: java.lang.Throwable
25: aload 2
monitorexit
26: athrow
start local 1 27: StackMap locals: org.glassfish.grizzly.nio.transport.TCPNIOServerConnection org.glassfish.grizzly.nio.transport.TCPNIOConnection
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
6 9 1 acceptedConnection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
20 25 1 acceptedConnection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
27 28 1 acceptedConnection Lorg/glassfish/grizzly/nio/transport/TCPNIOConnection;
2 8 2 acceptedChannel Ljava/nio/channels/SocketChannel;
15 23 3 acceptedChannel Ljava/nio/channels/SocketChannel;
Exception table:
from to target type
10 13 25 any
14 17 25 any
18 24 25 any
25 26 25 any
Exceptions:
throws java.io.IOException
public void setReadBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
ldc "Use TCPNIOTransport.setReadBufferSize()"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 1 1 readBufferSize I
MethodParameters:
Name Flags
readBufferSize final
public void setWriteBufferSize(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.IllegalStateException
dup
ldc "Use TCPNIOTransport.setWriteBufferSize()"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 1 1 writeBufferSize I
MethodParameters:
Name Flags
writeBufferSize final
public int getReadBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getReadBufferSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
public int getWriteBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
invokevirtual org.glassfish.grizzly.nio.NIOTransport.getWriteBufferSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
protected void closeGracefully0(org.glassfish.grizzly.CompletionHandler<org.glassfish.grizzly.Closeable>, org.glassfish.grizzly.CloseReason);
descriptor: (Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/CloseReason;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.terminate0:(Lorg/glassfish/grizzly/CompletionHandler;Lorg/glassfish/grizzly/CloseReason;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
0 2 1 completionHandler Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/Closeable;>;
0 2 2 closeReason Lorg/glassfish/grizzly/CloseReason;
Signature: (Lorg/glassfish/grizzly/CompletionHandler<Lorg/glassfish/grizzly/Closeable;>;Lorg/glassfish/grizzly/CloseReason;)V
MethodParameters:
Name Flags
completionHandler final
closeReason final
protected void resetProperties();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
new org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$1
dup
aload 0
invokespecial org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$1.<init>:(Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;)V
invokestatic org.glassfish.grizzly.utils.Holder.lazyHolder:(Lorg/glassfish/grizzly/utils/NullaryFunction;)Lorg/glassfish/grizzly/utils/Holder$LazyHolder;
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.localSocketAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
1: aload 0
aconst_null
invokestatic org.glassfish.grizzly.utils.Holder.staticHolder:(Ljava/lang/Object;)Lorg/glassfish/grizzly/utils/Holder;
putfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.peerSocketAddressHolder:Lorg/glassfish/grizzly/utils/Holder;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;
static org.glassfish.grizzly.nio.NIOTransport access$0(org.glassfish.grizzly.nio.transport.TCPNIOServerConnection);
descriptor: (Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;)Lorg/glassfish/grizzly/nio/NIOTransport;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.transport:Lorg/glassfish/grizzly/nio/NIOTransport;
areturn
LocalVariableTable:
Start End Slot Name Signature
static java.nio.channels.SelectableChannel access$1(org.glassfish.grizzly.nio.transport.TCPNIOServerConnection);
descriptor: (Lorg/glassfish/grizzly/nio/transport/TCPNIOServerConnection;)Ljava/nio/channels/SelectableChannel;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.glassfish.grizzly.nio.transport.TCPNIOServerConnection.channel:Ljava/nio/channels/SelectableChannel;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "TCPNIOServerConnection.java"
NestMembers:
org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$1 org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler
InnerClasses:
org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$1
protected final RegisterAcceptedChannelCompletionHandler = org.glassfish.grizzly.nio.transport.TCPNIOServerConnection$RegisterAcceptedChannelCompletionHandler of org.glassfish.grizzly.nio.transport.TCPNIOServerConnection
public abstract LazyHolder = org.glassfish.grizzly.utils.Holder$LazyHolder of org.glassfish.grizzly.utils.Holder