public class io.vertx.core.net.impl.HandlerManager<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.net.impl.HandlerManager
super_class: java.lang.Object
{
private static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.vertx.core.net.impl.VertxEventLoopGroup availableWorkers;
descriptor: Lio/vertx/core/net/impl/VertxEventLoopGroup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.ConcurrentMap<io.netty.channel.EventLoop, io.vertx.core.net.impl.HandlerManager$Handlers<T>> handlerMap;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Lio/netty/channel/EventLoop;Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;>;
private volatile boolean hasHandlers;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/net/impl/HandlerManager;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.core.net.impl.HandlerManager.log:Lio/vertx/core/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.vertx.core.net.impl.VertxEventLoopGroup);
descriptor: (Lio/vertx/core/net/impl/VertxEventLoopGroup;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
2: aload 0
aload 1
putfield io.vertx.core.net.impl.HandlerManager.availableWorkers:Lio/vertx/core/net/impl/VertxEventLoopGroup;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/net/impl/HandlerManager<TT;>;
0 4 1 availableWorkers Lio/vertx/core/net/impl/VertxEventLoopGroup;
MethodParameters:
Name Flags
availableWorkers
public boolean hasHandlers();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.HandlerManager.hasHandlers:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/net/impl/HandlerManager<TT;>;
public synchronized java.util.List<T> handlers();
descriptor: ()Ljava/util/List;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
1: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
io/vertx/core/net/impl/HandlerManager.lambda$0(Lio/vertx/core/net/impl/HandlerManager$Handlers;)Ljava/util/stream/Stream; (6)
(Lio/vertx/core/net/impl/HandlerManager$Handlers;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.flatMap:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: invokedynamic apply()Ljava/util/function/Function;
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;)Ljava/lang/Object;
io/vertx/core/net/impl/HandlerManager.lambda$1(Lio/vertx/core/net/impl/HandlerHolder;)Ljava/lang/Object; (6)
(Lio/vertx/core/net/impl/HandlerHolder;)Ljava/lang/Object;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/net/impl/HandlerManager<TT;>;
Signature: ()Ljava/util/List<TT;>;
public io.vertx.core.net.impl.HandlerHolder<T> chooseHandler(io.netty.channel.EventLoop);
descriptor: (Lio/netty/channel/EventLoop;)Lio/vertx/core/net/impl/HandlerHolder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.net.impl.HandlerManager$Handlers
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
goto 3
StackMap locals: io.vertx.core.net.impl.HandlerManager$Handlers
StackMap stack:
2: aload 2
invokevirtual io.vertx.core.net.impl.HandlerManager$Handlers.chooseHandler:()Lio/vertx/core/net/impl/HandlerHolder;
StackMap locals:
StackMap stack: io.vertx.core.net.impl.HandlerHolder
3: 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/HandlerManager<TT;>;
0 4 1 worker Lio/netty/channel/EventLoop;
1 4 2 handlers Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;
Signature: (Lio/netty/channel/EventLoop;)Lio/vertx/core/net/impl/HandlerHolder<TT;>;
MethodParameters:
Name Flags
worker
public synchronized void addHandler(T, io.vertx.core.impl.ContextInternal);
descriptor: (Ljava/lang/Object;Lio/vertx/core/impl/ContextInternal;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.vertx.core.impl.ContextInternal.nettyEventLoop:()Lio/netty/channel/EventLoop;
astore 3
start local 3 1: aload 0
getfield io.vertx.core.net.impl.HandlerManager.availableWorkers:Lio/vertx/core/net/impl/VertxEventLoopGroup;
aload 3
invokevirtual io.vertx.core.net.impl.VertxEventLoopGroup.addWorker:(Lio/netty/channel/EventLoop;)V
2: new io.vertx.core.net.impl.HandlerManager$Handlers
dup
invokespecial io.vertx.core.net.impl.HandlerManager$Handlers.<init>:()V
astore 4
start local 4 3: aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
aload 3
aload 4
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.net.impl.HandlerManager$Handlers
astore 5
start local 5 4: aload 5
ifnull 6
5: aload 5
astore 4
6: StackMap locals: io.netty.channel.EventLoop io.vertx.core.net.impl.HandlerManager$Handlers io.vertx.core.net.impl.HandlerManager$Handlers
StackMap stack:
aload 4
new io.vertx.core.net.impl.HandlerHolder
dup
aload 2
aload 1
invokespecial io.vertx.core.net.impl.HandlerHolder.<init>:(Lio/vertx/core/impl/ContextInternal;Ljava/lang/Object;)V
invokevirtual io.vertx.core.net.impl.HandlerManager$Handlers.addHandler:(Lio/vertx/core/net/impl/HandlerHolder;)V
7: aload 0
iconst_1
putfield io.vertx.core.net.impl.HandlerManager.hasHandlers:Z
8: 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 9 0 this Lio/vertx/core/net/impl/HandlerManager<TT;>;
0 9 1 handler TT;
0 9 2 context Lio/vertx/core/impl/ContextInternal;
1 9 3 worker Lio/netty/channel/EventLoop;
3 9 4 handlers Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;
4 9 5 prev Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;
Signature: (TT;Lio/vertx/core/impl/ContextInternal;)V
MethodParameters:
Name Flags
handler
context
public synchronized void removeHandler(T, io.vertx.core.impl.ContextInternal);
descriptor: (Ljava/lang/Object;Lio/vertx/core/impl/ContextInternal;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.vertx.core.impl.ContextInternal.nettyEventLoop:()Lio/netty/channel/EventLoop;
astore 3
start local 3 1: aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.net.impl.HandlerManager$Handlers
astore 4
start local 4 2: aload 4
new io.vertx.core.net.impl.HandlerHolder
dup
aload 2
aload 1
invokespecial io.vertx.core.net.impl.HandlerHolder.<init>:(Lio/vertx/core/impl/ContextInternal;Ljava/lang/Object;)V
invokevirtual io.vertx.core.net.impl.HandlerManager$Handlers.removeHandler:(Lio/vertx/core/net/impl/HandlerHolder;)Z
ifne 4
3: new java.lang.IllegalStateException
dup
ldc "Can't find handler"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.netty.channel.EventLoop io.vertx.core.net.impl.HandlerManager$Handlers
StackMap stack:
aload 4
invokevirtual io.vertx.core.net.impl.HandlerManager$Handlers.isEmpty:()Z
ifeq 6
5: aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.HandlerManager.handlerMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.isEmpty:()Z
ifeq 8
7: aload 0
iconst_0
putfield io.vertx.core.net.impl.HandlerManager.hasHandlers:Z
8: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.net.impl.HandlerManager.availableWorkers:Lio/vertx/core/net/impl/VertxEventLoopGroup;
aload 3
invokevirtual io.vertx.core.net.impl.VertxEventLoopGroup.removeWorker:(Lio/netty/channel/EventLoop;)V
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/net/impl/HandlerManager<TT;>;
0 10 1 handler TT;
0 10 2 context Lio/vertx/core/impl/ContextInternal;
1 10 3 worker Lio/netty/channel/EventLoop;
2 10 4 handlers Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;
Signature: (TT;Lio/vertx/core/impl/ContextInternal;)V
MethodParameters:
Name Flags
handler
context
private static java.util.stream.Stream lambda$0(io.vertx.core.net.impl.HandlerManager$Handlers);
descriptor: (Lio/vertx/core/net/impl/HandlerManager$Handlers;)Ljava/util/stream/Stream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.HandlerManager$Handlers.list:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 handlers Lio/vertx/core/net/impl/HandlerManager$Handlers<TT;>;
private static java.lang.Object lambda$1(io.vertx.core.net.impl.HandlerHolder);
descriptor: (Lio/vertx/core/net/impl/HandlerHolder;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.net.impl.HandlerHolder.handler:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 holder Lio/vertx/core/net/impl/HandlerHolder<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "HandlerManager.java"
NestMembers:
io.vertx.core.net.impl.HandlerManager$Handlers
InnerClasses:
private final Handlers = io.vertx.core.net.impl.HandlerManager$Handlers of io.vertx.core.net.impl.HandlerManager
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles