public class io.vertx.core.net.impl.NetServerImpl extends io.vertx.core.net.impl.TCPServerBase implements io.vertx.core.Closeable, io.vertx.core.spi.metrics.MetricsProvider, io.vertx.core.net.NetServer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.net.impl.NetServerImpl
super_class: io.vertx.core.net.impl.TCPServerBase
{
private static final io.vertx.core.impl.logging.Logger log;
descriptor: Lio/vertx/core/impl/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.vertx.core.net.impl.NetServerImpl$NetSocketStream connectStream;
descriptor: Lio/vertx/core/net/impl/NetServerImpl$NetSocketStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long demand;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.Handler<io.vertx.core.net.NetSocket> registeredHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/core/net/NetSocket;>;
private io.vertx.core.Handler<io.vertx.core.net.NetSocket> handler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Lio/vertx/core/net/NetSocket;>;
private io.vertx.core.Handler<java.lang.Void> endHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Ljava/lang/Void;>;
private io.vertx.core.Handler<java.lang.Throwable> exceptionHandler;
descriptor: Lio/vertx/core/Handler;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/Handler<Ljava/lang/Throwable;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/net/impl/NetServerImpl;
invokestatic io.vertx.core.impl.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/impl/logging/Logger;
putstatic io.vertx.core.net.impl.NetServerImpl.log:Lio/vertx/core/impl/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.vertx.core.impl.VertxInternal, io.vertx.core.net.NetServerOptions);
descriptor: (Lio/vertx/core/impl/VertxInternal;Lio/vertx/core/net/NetServerOptions;)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 io.vertx.core.net.impl.TCPServerBase.<init>:(Lio/vertx/core/impl/VertxInternal;Lio/vertx/core/net/NetServerOptions;)V
1: aload 0
new io.vertx.core.net.impl.NetServerImpl$NetSocketStream
dup
aload 0
invokespecial io.vertx.core.net.impl.NetServerImpl$NetSocketStream.<init>:(Lio/vertx/core/net/impl/NetServerImpl;)V
putfield io.vertx.core.net.impl.NetServerImpl.connectStream:Lio/vertx/core/net/impl/NetServerImpl$NetSocketStream;
2: aload 0
ldc 9223372036854775807
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 4 1 vertx Lio/vertx/core/impl/VertxInternal;
0 4 2 options Lio/vertx/core/net/NetServerOptions;
MethodParameters:
Name Flags
vertx
options
private synchronized void pauseAccepting();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_0
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetServerImpl;
private synchronized void resumeAccepting();
descriptor: ()V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc 9223372036854775807
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/net/impl/NetServerImpl;
private synchronized void fetchAccepting(long);
descriptor: (J)V
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifle 4
1: aload 0
dup
getfield io.vertx.core.net.impl.NetServerImpl.demand:J
lload 1
ladd
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
2: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.demand:J
lconst_0
lcmp
ifge 4
3: aload 0
ldc 9223372036854775807
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 5 1 amount J
MethodParameters:
Name Flags
amount
protected synchronized boolean accept();
descriptor: ()Z
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.demand:J
lconst_0
lcmp
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: iload 1
ifeq 5
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.demand:J
ldc 9223372036854775807
lcmp
ifeq 5
4: aload 0
dup
getfield io.vertx.core.net.impl.NetServerImpl.demand:J
lconst_1
lsub
putfield io.vertx.core.net.impl.NetServerImpl.demand:J
5: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/net/impl/NetServerImpl;
3 6 1 accept Z
public synchronized io.vertx.core.Handler<io.vertx.core.net.NetSocket> connectHandler();
descriptor: ()Lio/vertx/core/Handler;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.handler:Lio/vertx/core/Handler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
Signature: ()Lio/vertx/core/Handler<Lio/vertx/core/net/NetSocket;>;
public synchronized io.vertx.core.net.NetServer connectHandler(io.vertx.core.Handler<io.vertx.core.net.NetSocket>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.core.net.impl.NetServerImpl.isListening:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Cannot set connectHandler when server is listening"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.vertx.core.net.impl.NetServerImpl.handler:Lio/vertx/core/Handler;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 4 1 handler Lio/vertx/core/Handler<Lio/vertx/core/net/NetSocket;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/net/NetSocket;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
handler
public synchronized io.vertx.core.net.NetServer exceptionHandler(io.vertx.core.Handler<java.lang.Throwable>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.core.net.impl.NetServerImpl.isListening:()Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Cannot set exceptionHandler when server is listening"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield io.vertx.core.net.impl.NetServerImpl.exceptionHandler:Lio/vertx/core/Handler;
3: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 4 1 handler Lio/vertx/core/Handler<Ljava/lang/Throwable;>;
Signature: (Lio/vertx/core/Handler<Ljava/lang/Throwable;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
handler
protected void initChannel(io.netty.channel.ChannelPipeline);
descriptor: (Lio/netty/channel/ChannelPipeline;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=11, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getLogActivity:()Z
ifeq 2
1: aload 1
ldc "logging"
new io.netty.handler.logging.LoggingHandler
dup
invokespecial io.netty.handler.logging.LoggingHandler.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.sslHelper:Lio/vertx/core/net/impl/SSLHelper;
invokevirtual io.vertx.core.net.impl.SSLHelper.isSSL:()Z
ifeq 4
3: aload 1
ldc "chunkedWriter"
new io.netty.handler.stream.ChunkedWriteHandler
dup
invokespecial io.netty.handler.stream.ChunkedWriteHandler.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getIdleTimeout:()I
ifle 6
5: aload 1
ldc "idle"
new io.netty.handler.timeout.IdleStateHandler
dup
lconst_0
lconst_0
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getIdleTimeout:()I
i2l
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getIdleTimeoutUnit:()Ljava/util/concurrent/TimeUnit;
invokespecial io.netty.handler.timeout.IdleStateHandler.<init>:(JJJLjava/util/concurrent/TimeUnit;)V
invokeinterface io.netty.channel.ChannelPipeline.addLast:(Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 7 1 pipeline Lio/netty/channel/ChannelPipeline;
MethodParameters:
Name Flags
pipeline
protected io.vertx.core.spi.metrics.TCPMetrics<?> createMetrics(io.vertx.core.net.SocketAddress);
descriptor: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/spi/metrics/TCPMetrics;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.metricsSPI:()Lio/vertx/core/spi/metrics/VertxMetrics;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
aload 1
invokeinterface io.vertx.core.spi.metrics.VertxMetrics.createNetServerMetrics:(Lio/vertx/core/net/NetServerOptions;Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/spi/metrics/TCPMetrics;
areturn
3: StackMap locals: io.vertx.core.spi.metrics.VertxMetrics
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 4 1 localAddress Lio/vertx/core/net/SocketAddress;
1 4 2 vertxMetrics Lio/vertx/core/spi/metrics/VertxMetrics;
Signature: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/spi/metrics/TCPMetrics<*>;
MethodParameters:
Name Flags
localAddress
public io.vertx.core.Future<java.lang.Void> close();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 1
start local 1 1: aload 1
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 2
start local 2 2: aload 0
aload 2
invokevirtual io.vertx.core.net.impl.NetServerImpl.close:(Lio/vertx/core/Promise;)V
3: aload 2
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
1 4 1 context Lio/vertx/core/impl/ContextInternal;
2 4 2 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
Signature: ()Lio/vertx/core/Future<Ljava/lang/Void;>;
public io.vertx.core.Future<io.vertx.core.net.NetServer> listen(int, java.lang.String);
descriptor: (ILjava/lang/String;)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
invokestatic io.vertx.core.net.SocketAddress.inetSocketAddress:(ILjava/lang/String;)Lio/vertx/core/net/SocketAddress;
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
Signature: (ILjava/lang/String;)Lio/vertx/core/Future<Lio/vertx/core/net/NetServer;>;
MethodParameters:
Name Flags
port
host
public io.vertx.core.net.NetServer listen(int, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetServer>>);
descriptor: (ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
invokestatic io.vertx.core.net.SocketAddress.inetSocketAddress:(ILjava/lang/String;)Lio/vertx/core/net/SocketAddress;
aload 3
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(Lio/vertx/core/net/SocketAddress;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 1 1 port I
0 1 2 host Ljava/lang/String;
0 1 3 listenHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;
Signature: (ILjava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
port
host
listenHandler
public io.vertx.core.Future<io.vertx.core.net.NetServer> listen(int);
descriptor: (I)Lio/vertx/core/Future;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc "0.0.0.0"
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(ILjava/lang/String;)Lio/vertx/core/Future;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 1 1 port I
Signature: (I)Lio/vertx/core/Future<Lio/vertx/core/net/NetServer;>;
MethodParameters:
Name Flags
port
public io.vertx.core.net.NetServer listen(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetServer>>);
descriptor: (ILio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
ldc "0.0.0.0"
aload 2
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 1 1 port I
0 1 2 listenHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;
Signature: (ILio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
port
listenHandler
public synchronized io.vertx.core.Future<io.vertx.core.net.NetServer> listen(io.vertx.core.net.SocketAddress);
descriptor: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=9, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.handler:Lio/vertx/core/Handler;
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "Set connect handler first"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 2
start local 2 3: aload 0
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.handler:Lio/vertx/core/Handler;
putfield io.vertx.core.net.impl.NetServerImpl.registeredHandler:Lio/vertx/core/Handler;
4: aload 0
aload 1
aload 2
new io.vertx.core.net.impl.NetServerImpl$NetServerWorker
dup
aload 0
aload 2
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.handler:Lio/vertx/core/Handler;
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.exceptionHandler:Lio/vertx/core/Handler;
invokespecial io.vertx.core.net.impl.NetServerImpl$NetServerWorker.<init>:(Lio/vertx/core/net/impl/NetServerImpl;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Handler;Lio/vertx/core/Handler;)V
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(Lio/vertx/core/net/SocketAddress;Lio/vertx/core/impl/ContextInternal;Lio/vertx/core/Handler;)Lio/netty/util/concurrent/Future;
astore 3
start local 3 5: aload 2
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 4
start local 4 6: aload 3
aload 0
aload 4
invokedynamic operationComplete(Lio/vertx/core/net/impl/NetServerImpl;Lio/vertx/core/Promise;)Lio/netty/util/concurrent/GenericFutureListener;
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:
(Lio/netty/util/concurrent/Future;)V
io/vertx/core/net/impl/NetServerImpl.lambda$0(Lio/vertx/core/Promise;Lio/netty/util/concurrent/Future;)V (7)
(Lio/netty/util/concurrent/Future;)V
invokeinterface io.netty.util.concurrent.Future.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;
pop
7: aload 4
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 8 1 localAddress Lio/vertx/core/net/SocketAddress;
3 8 2 listenContext Lio/vertx/core/impl/ContextInternal;
5 8 3 bindFuture Lio/netty/util/concurrent/Future<Lio/netty/channel/Channel;>;
6 8 4 promise Lio/vertx/core/Promise<Lio/vertx/core/net/NetServer;>;
Signature: (Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future<Lio/vertx/core/net/NetServer;>;
MethodParameters:
Name Flags
localAddress
public synchronized io.vertx.core.net.NetServer listen(io.vertx.core.net.SocketAddress, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetServer>>);
descriptor: (Lio/vertx/core/net/SocketAddress;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 2
1: invokedynamic handle()Lio/vertx/core/Handler;
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:
(Ljava/lang/Object;)V
io/vertx/core/net/impl/NetServerImpl.lambda$1(Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
astore 2
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(Lio/vertx/core/net/SocketAddress;)Lio/vertx/core/Future;
aload 2
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
3: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 4 1 localAddress Lio/vertx/core/net/SocketAddress;
0 4 2 listenHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;
Signature: (Lio/vertx/core/net/SocketAddress;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
localAddress
listenHandler
public synchronized io.vertx.core.Future<io.vertx.core.net.NetServer> listen();
descriptor: ()Lio/vertx/core/Future;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getPort:()I
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getHost:()Ljava/lang/String;
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(ILjava/lang/String;)Lio/vertx/core/Future;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
Signature: ()Lio/vertx/core/Future<Lio/vertx/core/net/NetServer;>;
public synchronized io.vertx.core.net.NetServer listen(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.net.NetServer>>);
descriptor: (Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getPort:()I
aload 0
getfield io.vertx.core.net.impl.NetServerImpl.options:Lio/vertx/core/net/NetServerOptions;
invokevirtual io.vertx.core.net.NetServerOptions.getHost:()Ljava/lang/String;
aload 1
invokevirtual io.vertx.core.net.impl.NetServerImpl.listen:(ILjava/lang/String;Lio/vertx/core/Handler;)Lio/vertx/core/net/NetServer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 1 1 listenHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;>;)Lio/vertx/core/net/NetServer;
MethodParameters:
Name Flags
listenHandler
public io.vertx.core.streams.ReadStream<io.vertx.core.net.NetSocket> connectStream();
descriptor: ()Lio/vertx/core/streams/ReadStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.connectStream:Lio/vertx/core/net/impl/NetServerImpl$NetSocketStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/NetServerImpl;
Signature: ()Lio/vertx/core/streams/ReadStream<Lio/vertx/core/net/NetSocket;>;
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.vertx:Lio/vertx/core/impl/VertxInternal;
invokeinterface io.vertx.core.impl.VertxInternal.getOrCreateContext:()Lio/vertx/core/impl/ContextInternal;
astore 2
start local 2 1: aload 2
invokeinterface io.vertx.core.impl.ContextInternal.promise:()Lio/vertx/core/impl/future/PromiseInternal;
astore 3
start local 3 2: aload 0
aload 3
invokevirtual io.vertx.core.net.impl.NetServerImpl.close:(Lio/vertx/core/Promise;)V
3: aload 3
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 1
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 5 1 completionHandler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
1 5 2 context Lio/vertx/core/impl/ContextInternal;
2 5 3 promise Lio/vertx/core/Promise<Ljava/lang/Void;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;)V
MethodParameters:
Name Flags
completionHandler
public synchronized void close(io.vertx.core.Promise<java.lang.Void>);
descriptor: (Lio/vertx/core/Promise;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial io.vertx.core.net.impl.TCPServerBase.close:(Lio/vertx/core/Promise;)V
1: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.endHandler:Lio/vertx/core/Handler;
astore 2
start local 2 2: aload 0
getfield io.vertx.core.net.impl.NetServerImpl.endHandler:Lio/vertx/core/Handler;
ifnull 5
3: aload 0
aconst_null
putfield io.vertx.core.net.impl.NetServerImpl.endHandler:Lio/vertx/core/Handler;
4: aload 1
invokeinterface io.vertx.core.Promise.future:()Lio/vertx/core/Future;
aload 2
invokedynamic handle(Lio/vertx/core/Handler;)Lio/vertx/core/Handler;
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:
(Ljava/lang/Object;)V
io/vertx/core/net/impl/NetServerImpl.lambda$2(Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V (6)
(Lio/vertx/core/AsyncResult;)V
invokeinterface io.vertx.core.Future.onComplete:(Lio/vertx/core/Handler;)Lio/vertx/core/Future;
pop
5: StackMap locals: io.vertx.core.Handler
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 6 1 completion Lio/vertx/core/Promise<Ljava/lang/Void;>;
2 6 2 handler Lio/vertx/core/Handler<Ljava/lang/Void;>;
Signature: (Lio/vertx/core/Promise<Ljava/lang/Void;>;)V
MethodParameters:
Name Flags
completion
public boolean isClosed();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.vertx.core.net.impl.NetServerImpl.isListening:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/net/impl/NetServerImpl;
private void lambda$0(io.vertx.core.Promise, io.netty.util.concurrent.Future);
descriptor: (Lio/vertx/core/Promise;Lio/netty/util/concurrent/Future;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 2
invokeinterface io.netty.util.concurrent.Future.isSuccess:()Z
ifeq 3
1: aload 1
aload 0
invokeinterface io.vertx.core.Promise.complete:(Ljava/lang/Object;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 1
aload 2
invokeinterface io.netty.util.concurrent.Future.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.Promise.fail:(Ljava/lang/Throwable;)V
4: StackMap locals:
StackMap stack:
return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/NetServerImpl;
0 5 2 res Lio/netty/util/concurrent/Future<-Lio/netty/channel/Channel;>;
Exceptions:
throws java.lang.Exception
private static void lambda$1(io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface io.vertx.core.AsyncResult.failed:()Z
ifeq 2
1: getstatic io.vertx.core.net.impl.NetServerImpl.log:Lio/vertx/core/impl/logging/Logger;
ldc "Failed to listen"
aload 0
invokeinterface io.vertx.core.AsyncResult.cause:()Ljava/lang/Throwable;
invokeinterface io.vertx.core.impl.logging.Logger.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 res Lio/vertx/core/AsyncResult<Lio/vertx/core/net/NetServer;>;
private static void lambda$2(io.vertx.core.Handler, io.vertx.core.AsyncResult);
descriptor: (Lio/vertx/core/Handler;Lio/vertx/core/AsyncResult;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 0
aconst_null
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
return
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 ar Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;
}
SourceFile: "NetServerImpl.java"
NestMembers:
io.vertx.core.net.impl.NetServerImpl$NetServerWorker io.vertx.core.net.impl.NetServerImpl$NetSocketStream
InnerClasses:
private NetServerWorker = io.vertx.core.net.impl.NetServerImpl$NetServerWorker of io.vertx.core.net.impl.NetServerImpl
private NetSocketStream = io.vertx.core.net.impl.NetServerImpl$NetSocketStream of io.vertx.core.net.impl.NetServerImpl
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles