public abstract class io.netty.resolver.AddressResolverGroup<T extends java.net.SocketAddress> implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.resolver.AddressResolverGroup
super_class: java.lang.Object
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.Map<io.netty.util.concurrent.EventExecutor, io.netty.resolver.AddressResolver<T>> resolvers;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Lio/netty/util/concurrent/EventExecutor;Lio/netty/resolver/AddressResolver<TT;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/resolver/AddressResolverGroup;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.resolver.AddressResolverGroup.logger:Lio/netty/util/internal/logging/InternalLogger;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
putfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/resolver/AddressResolverGroup<TT;>;
public io.netty.resolver.AddressResolver<T> getResolver(io.netty.util.concurrent.EventExecutor);
descriptor: (Lio/netty/util/concurrent/EventExecutor;)Lio/netty/resolver/AddressResolver;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "executor"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.netty.util.concurrent.EventExecutor.isShuttingDown:()Z
ifeq 4
3: new java.lang.IllegalStateException
dup
ldc "executor not accepting a task"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
dup
astore 3
monitorenter
5: aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.resolver.AddressResolver
astore 2
start local 2 6: aload 2
ifnonnull 14
7: aload 0
aload 1
invokevirtual io.netty.resolver.AddressResolverGroup.newResolver:(Lio/netty/util/concurrent/EventExecutor;)Lio/netty/resolver/AddressResolver;
astore 4
start local 4 8: goto 11
end local 4 StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.util.concurrent.EventExecutor io.netty.resolver.AddressResolver java.util.Map
StackMap stack: java.lang.Exception
9: astore 5
start local 5 10: new java.lang.IllegalStateException
dup
ldc "failed to create a new resolver"
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 start local 4 11: StackMap locals: io.netty.resolver.AddressResolver
StackMap stack:
aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
aload 1
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: aload 1
invokeinterface io.netty.util.concurrent.EventExecutor.terminationFuture:()Lio/netty/util/concurrent/Future;
new io.netty.resolver.AddressResolverGroup$1
dup
aload 0
aload 1
aload 4
invokespecial io.netty.resolver.AddressResolverGroup$1.<init>:(Lio/netty/resolver/AddressResolverGroup;Lio/netty/util/concurrent/EventExecutor;Lio/netty/resolver/AddressResolver;)V
invokeinterface io.netty.util.concurrent.Future.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;
pop
13: aload 4
astore 2
end local 4 14: StackMap locals:
StackMap stack:
aload 3
monitorexit
15: goto 18
end local 2 StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.util.concurrent.EventExecutor top java.util.Map
StackMap stack: java.lang.Throwable
16: aload 3
monitorexit
17: athrow
start local 2 18: StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.util.concurrent.EventExecutor io.netty.resolver.AddressResolver
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/netty/resolver/AddressResolverGroup<TT;>;
0 19 1 executor Lio/netty/util/concurrent/EventExecutor;
6 16 2 r Lio/netty/resolver/AddressResolver<TT;>;
18 19 2 r Lio/netty/resolver/AddressResolver<TT;>;
8 9 4 newResolver Lio/netty/resolver/AddressResolver<TT;>;
11 14 4 newResolver Lio/netty/resolver/AddressResolver<TT;>;
10 11 5 e Ljava/lang/Exception;
Exception table:
from to target type
7 8 9 Class java.lang.Exception
5 15 16 any
16 17 16 any
Signature: (Lio/netty/util/concurrent/EventExecutor;)Lio/netty/resolver/AddressResolver<TT;>;
MethodParameters:
Name Flags
executor final
protected abstract io.netty.resolver.AddressResolver<T> newResolver(io.netty.util.concurrent.EventExecutor);
descriptor: (Lio/netty/util/concurrent/EventExecutor;)Lio/netty/resolver/AddressResolver;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/util/concurrent/EventExecutor;)Lio/netty/resolver/AddressResolver<TT;>;
MethodParameters:
Name Flags
executor
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
dup
astore 2
monitorenter
1: aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
anewarray io.netty.resolver.AddressResolver
invokeinterface java.util.Collection.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast io.netty.resolver.AddressResolver[]
astore 1
start local 1 2: aload 0
getfield io.netty.resolver.AddressResolverGroup.resolvers:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
3: aload 2
monitorexit
4: goto 7
end local 1 StackMap locals: io.netty.resolver.AddressResolverGroup top java.util.Map
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
start local 1 7: StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.resolver.AddressResolver[]
StackMap stack:
aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 14
StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.resolver.AddressResolver[] top int int io.netty.resolver.AddressResolver[]
StackMap stack:
8: aload 5
iload 3
aaload
astore 2
start local 2 9: aload 2
invokeinterface io.netty.resolver.AddressResolver.close:()V
10: goto 13
StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.resolver.AddressResolver[] io.netty.resolver.AddressResolver int int io.netty.resolver.AddressResolver[]
StackMap stack: java.lang.Throwable
11: astore 6
start local 6 12: getstatic io.netty.resolver.AddressResolverGroup.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to close a resolver:"
aload 6
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 6 end local 2 13: StackMap locals: io.netty.resolver.AddressResolverGroup io.netty.resolver.AddressResolver[] top int int io.netty.resolver.AddressResolver[]
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
14: iload 3
iload 4
if_icmplt 8
15: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/resolver/AddressResolverGroup<TT;>;
2 5 1 rArray [Lio/netty/resolver/AddressResolver;
7 16 1 rArray [Lio/netty/resolver/AddressResolver;
9 13 2 r Lio/netty/resolver/AddressResolver<TT;>;
12 13 6 t Ljava/lang/Throwable;
Exception table:
from to target type
1 4 5 any
5 6 5 any
9 10 11 Class java.lang.Throwable
}
Signature: <T:Ljava/net/SocketAddress;>Ljava/lang/Object;Ljava/io/Closeable;
SourceFile: "AddressResolverGroup.java"
NestMembers:
io.netty.resolver.AddressResolverGroup$1
InnerClasses:
io.netty.resolver.AddressResolverGroup$1