final class io.netty.channel.local.LocalChannelRegistry
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.channel.local.LocalChannelRegistry
super_class: java.lang.Object
{
private static final java.util.concurrent.ConcurrentMap<io.netty.channel.local.LocalAddress, io.netty.channel.Channel> boundChannels;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Lio/netty/channel/local/LocalAddress;Lio/netty/channel/Channel;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic io.netty.util.internal.PlatformDependent.newConcurrentHashMap:()Ljava/util/concurrent/ConcurrentMap;
putstatic io.netty.channel.local.LocalChannelRegistry.boundChannels:Ljava/util/concurrent/ConcurrentMap;
return
LocalVariableTable:
Start End Slot Name Signature
static io.netty.channel.local.LocalAddress register(io.netty.channel.Channel, io.netty.channel.local.LocalAddress, java.net.SocketAddress);
descriptor: (Lio/netty/channel/Channel;Lio/netty/channel/local/LocalAddress;Ljava/net/SocketAddress;)Lio/netty/channel/local/LocalAddress;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 2
1: new io.netty.channel.ChannelException
dup
ldc "already bound"
invokespecial io.netty.channel.ChannelException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
instanceof io.netty.channel.local.LocalAddress
ifne 4
3: new io.netty.channel.ChannelException
dup
new java.lang.StringBuilder
dup
ldc "unsupported address type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.channel.ChannelException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
checkcast io.netty.channel.local.LocalAddress
astore 3
start local 3 5: getstatic io.netty.channel.local.LocalAddress.ANY:Lio/netty/channel/local/LocalAddress;
aload 3
invokevirtual io.netty.channel.local.LocalAddress.equals:(Ljava/lang/Object;)Z
ifeq 7
6: new io.netty.channel.local.LocalAddress
dup
aload 0
invokespecial io.netty.channel.local.LocalAddress.<init>:(Lio/netty/channel/Channel;)V
astore 3
7: StackMap locals: io.netty.channel.local.LocalAddress
StackMap stack:
getstatic io.netty.channel.local.LocalChannelRegistry.boundChannels:Ljava/util/concurrent/ConcurrentMap;
aload 3
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.channel.Channel
astore 4
start local 4 8: aload 4
ifnull 10
9: new io.netty.channel.ChannelException
dup
new java.lang.StringBuilder
dup
ldc "address already in use by: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.channel.ChannelException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: io.netty.channel.Channel
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 channel Lio/netty/channel/Channel;
0 11 1 oldLocalAddress Lio/netty/channel/local/LocalAddress;
0 11 2 localAddress Ljava/net/SocketAddress;
5 11 3 addr Lio/netty/channel/local/LocalAddress;
8 11 4 boundChannel Lio/netty/channel/Channel;
MethodParameters:
Name Flags
channel
oldLocalAddress
localAddress
static io.netty.channel.Channel get(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)Lio/netty/channel/Channel;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic io.netty.channel.local.LocalChannelRegistry.boundChannels:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.channel.Channel
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 localAddress Ljava/net/SocketAddress;
MethodParameters:
Name Flags
localAddress
static void unregister(io.netty.channel.local.LocalAddress);
descriptor: (Lio/netty/channel/local/LocalAddress;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic io.netty.channel.local.LocalChannelRegistry.boundChannels:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 localAddress Lio/netty/channel/local/LocalAddress;
MethodParameters:
Name Flags
localAddress
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/local/LocalChannelRegistry;
}
SourceFile: "LocalChannelRegistry.java"