final class io.netty.resolver.dns.DnsQueryContext
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.resolver.dns.DnsQueryContext
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 io.netty.resolver.dns.DnsNameResolver parent;
descriptor: Lio/netty/resolver/dns/DnsNameResolver;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.util.concurrent.Promise<io.netty.channel.AddressedEnvelope<io.netty.handler.codec.dns.DnsResponse, java.net.InetSocketAddress>> promise;
descriptor: Lio/netty/util/concurrent/Promise;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lio/netty/util/concurrent/Promise<Lio/netty/channel/AddressedEnvelope<Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;>;
private final int id;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.dns.DnsQuestion question;
descriptor: Lio/netty/handler/codec/dns/DnsQuestion;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.dns.DnsRecord[] additionals;
descriptor: [Lio/netty/handler/codec/dns/DnsRecord;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.handler.codec.dns.DnsRecord optResource;
descriptor: Lio/netty/handler/codec/dns/DnsRecord;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.InetSocketAddress nameServerAddr;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean recursionDesired;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile io.netty.util.concurrent.ScheduledFuture<?> timeoutFuture;
descriptor: Lio/netty/util/concurrent/ScheduledFuture;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Lio/netty/util/concurrent/ScheduledFuture<*>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/netty/resolver/dns/DnsQueryContext;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.resolver.dns.DnsQueryContext.logger:Lio/netty/util/internal/logging/InternalLogger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.netty.resolver.dns.DnsNameResolver, java.net.InetSocketAddress, io.netty.handler.codec.dns.DnsQuestion, io.netty.handler.codec.dns.DnsRecord[], io.netty.util.concurrent.Promise<io.netty.channel.AddressedEnvelope<io.netty.handler.codec.dns.DnsResponse, java.net.InetSocketAddress>>);
descriptor: (Lio/netty/resolver/dns/DnsNameResolver;Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;[Lio/netty/handler/codec/dns/DnsRecord;Lio/netty/util/concurrent/Promise;)V
flags: (0x0000)
Code:
stack=7, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ldc "parent"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsNameResolver
putfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
2: aload 0
aload 2
ldc "nameServerAddr"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.net.InetSocketAddress
putfield io.netty.resolver.dns.DnsQueryContext.nameServerAddr:Ljava/net/InetSocketAddress;
3: aload 0
aload 3
ldc "question"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.handler.codec.dns.DnsQuestion
putfield io.netty.resolver.dns.DnsQueryContext.question:Lio/netty/handler/codec/dns/DnsQuestion;
4: aload 0
aload 4
ldc "additionals"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.handler.codec.dns.DnsRecord[]
putfield io.netty.resolver.dns.DnsQueryContext.additionals:[Lio/netty/handler/codec/dns/DnsRecord;
5: aload 0
aload 5
ldc "promise"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.util.concurrent.Promise
putfield io.netty.resolver.dns.DnsQueryContext.promise:Lio/netty/util/concurrent/Promise;
6: aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsNameResolver.isRecursionDesired:()Z
putfield io.netty.resolver.dns.DnsQueryContext.recursionDesired:Z
7: aload 0
aload 1
getfield io.netty.resolver.dns.DnsNameResolver.queryContextManager:Lio/netty/resolver/dns/DnsQueryContextManager;
aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.add:(Lio/netty/resolver/dns/DnsQueryContext;)I
putfield io.netty.resolver.dns.DnsQueryContext.id:I
8: aload 1
invokevirtual io.netty.resolver.dns.DnsNameResolver.isOptResourceEnabled:()Z
ifeq 11
9: aload 0
new io.netty.resolver.dns.DnsQueryContext$1
dup
aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsNameResolver.maxPayloadSize:()I
iconst_0
iconst_0
invokespecial io.netty.resolver.dns.DnsQueryContext$1.<init>:(Lio/netty/resolver/dns/DnsQueryContext;III)V
putfield io.netty.resolver.dns.DnsQueryContext.optResource:Lio/netty/handler/codec/dns/DnsRecord;
10: goto 12
11: StackMap locals: io.netty.resolver.dns.DnsQueryContext io.netty.resolver.dns.DnsNameResolver java.net.InetSocketAddress io.netty.handler.codec.dns.DnsQuestion io.netty.handler.codec.dns.DnsRecord[] io.netty.util.concurrent.Promise
StackMap stack:
aload 0
aconst_null
putfield io.netty.resolver.dns.DnsQueryContext.optResource:Lio/netty/handler/codec/dns/DnsRecord;
12: StackMap locals:
StackMap stack:
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 13 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 13 1 parent Lio/netty/resolver/dns/DnsNameResolver;
0 13 2 nameServerAddr Ljava/net/InetSocketAddress;
0 13 3 question Lio/netty/handler/codec/dns/DnsQuestion;
0 13 4 additionals [Lio/netty/handler/codec/dns/DnsRecord;
0 13 5 promise Lio/netty/util/concurrent/Promise<Lio/netty/channel/AddressedEnvelope<Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;>;
Signature: (Lio/netty/resolver/dns/DnsNameResolver;Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;[Lio/netty/handler/codec/dns/DnsRecord;Lio/netty/util/concurrent/Promise<Lio/netty/channel/AddressedEnvelope<Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;>;)V
MethodParameters:
Name Flags
parent
nameServerAddr
question
additionals
promise
java.net.InetSocketAddress nameServerAddr();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.nameServerAddr:Ljava/net/InetSocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/resolver/dns/DnsQueryContext;
io.netty.handler.codec.dns.DnsQuestion question();
descriptor: ()Lio/netty/handler/codec/dns/DnsQuestion;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.question:Lio/netty/handler/codec/dns/DnsQuestion;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/resolver/dns/DnsQueryContext;
void query(io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/channel/ChannelPromise;)V
flags: (0x0000)
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.question:()Lio/netty/handler/codec/dns/DnsQuestion;
astore 2
start local 2 1: aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.nameServerAddr:()Ljava/net/InetSocketAddress;
astore 3
start local 3 2: new io.netty.handler.codec.dns.DatagramDnsQuery
dup
aconst_null
aload 3
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.id:I
invokespecial io.netty.handler.codec.dns.DatagramDnsQuery.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;I)V
astore 4
start local 4 3: aload 4
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.recursionDesired:Z
invokevirtual io.netty.handler.codec.dns.DatagramDnsQuery.setRecursionDesired:(Z)Lio/netty/handler/codec/dns/DatagramDnsQuery;
pop
4: aload 4
getstatic io.netty.handler.codec.dns.DnsSection.QUESTION:Lio/netty/handler/codec/dns/DnsSection;
aload 2
invokevirtual io.netty.handler.codec.dns.DatagramDnsQuery.addRecord:(Lio/netty/handler/codec/dns/DnsSection;Lio/netty/handler/codec/dns/DnsRecord;)Lio/netty/handler/codec/dns/DatagramDnsQuery;
pop
5: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.additionals:[Lio/netty/handler/codec/dns/DnsRecord;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 9
StackMap locals: io.netty.resolver.dns.DnsQueryContext io.netty.channel.ChannelPromise io.netty.handler.codec.dns.DnsQuestion java.net.InetSocketAddress io.netty.handler.codec.dns.DatagramDnsQuery top int int io.netty.handler.codec.dns.DnsRecord[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 4
getstatic io.netty.handler.codec.dns.DnsSection.ADDITIONAL:Lio/netty/handler/codec/dns/DnsSection;
aload 5
invokevirtual io.netty.handler.codec.dns.DatagramDnsQuery.addRecord:(Lio/netty/handler/codec/dns/DnsSection;Lio/netty/handler/codec/dns/DnsRecord;)Lio/netty/handler/codec/dns/DatagramDnsQuery;
pop
end local 5 8: iinc 6 1
StackMap locals:
StackMap stack:
9: iload 6
iload 7
if_icmplt 6
10: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.optResource:Lio/netty/handler/codec/dns/DnsRecord;
ifnull 12
11: aload 4
getstatic io.netty.handler.codec.dns.DnsSection.ADDITIONAL:Lio/netty/handler/codec/dns/DnsSection;
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.optResource:Lio/netty/handler/codec/dns/DnsRecord;
invokevirtual io.netty.handler.codec.dns.DatagramDnsQuery.addRecord:(Lio/netty/handler/codec/dns/DnsSection;Lio/netty/handler/codec/dns/DnsRecord;)Lio/netty/handler/codec/dns/DatagramDnsQuery;
pop
12: StackMap locals: io.netty.resolver.dns.DnsQueryContext io.netty.channel.ChannelPromise io.netty.handler.codec.dns.DnsQuestion java.net.InetSocketAddress io.netty.handler.codec.dns.DatagramDnsQuery
StackMap stack:
getstatic io.netty.resolver.dns.DnsQueryContext.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 14
13: getstatic io.netty.resolver.dns.DnsQueryContext.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{} WRITE: [{}: {}], {}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
aastore
dup
iconst_1
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.id:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 3
aastore
dup
iconst_3
aload 2
aastore
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContext.sendQuery:(Lio/netty/handler/codec/dns/DnsQuery;Lio/netty/channel/ChannelPromise;)V
15: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 16 1 writePromise Lio/netty/channel/ChannelPromise;
1 16 2 question Lio/netty/handler/codec/dns/DnsQuestion;
2 16 3 nameServerAddr Ljava/net/InetSocketAddress;
3 16 4 query Lio/netty/handler/codec/dns/DatagramDnsQuery;
7 8 5 record Lio/netty/handler/codec/dns/DnsRecord;
MethodParameters:
Name Flags
writePromise
private void sendQuery(io.netty.handler.codec.dns.DnsQuery, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/handler/codec/dns/DnsQuery;Lio/netty/channel/ChannelPromise;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.channelFuture:Lio/netty/util/concurrent/Future;
invokeinterface io.netty.util.concurrent.Future.isDone:()Z
ifeq 3
1: aload 0
aload 1
aload 2
invokevirtual io.netty.resolver.dns.DnsQueryContext.writeQuery:(Lio/netty/handler/codec/dns/DnsQuery;Lio/netty/channel/ChannelPromise;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.channelFuture:Lio/netty/util/concurrent/Future;
new io.netty.resolver.dns.DnsQueryContext$2
dup
aload 0
aload 1
aload 2
invokespecial io.netty.resolver.dns.DnsQueryContext$2.<init>:(Lio/netty/resolver/dns/DnsQueryContext;Lio/netty/handler/codec/dns/DnsQuery;Lio/netty/channel/ChannelPromise;)V
invokeinterface io.netty.util.concurrent.Future.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/util/concurrent/Future;
pop
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 5 1 query Lio/netty/handler/codec/dns/DnsQuery;
0 5 2 writePromise Lio/netty/channel/ChannelPromise;
MethodParameters:
Name Flags
query final
writePromise final
private void writeQuery(io.netty.handler.codec.dns.DnsQuery, io.netty.channel.ChannelPromise);
descriptor: (Lio/netty/handler/codec/dns/DnsQuery;Lio/netty/channel/ChannelPromise;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
aload 1
aload 2
invokeinterface io.netty.channel.socket.DatagramChannel.writeAndFlush:(Ljava/lang/Object;Lio/netty/channel/ChannelPromise;)Lio/netty/channel/ChannelFuture;
astore 3
start local 3 1: aload 3
invokeinterface io.netty.channel.ChannelFuture.isDone:()Z
ifeq 4
2: aload 0
aload 3
invokevirtual io.netty.resolver.dns.DnsQueryContext.onQueryWriteCompletion:(Lio/netty/channel/ChannelFuture;)V
3: goto 5
4: StackMap locals: io.netty.channel.ChannelFuture
StackMap stack:
aload 3
new io.netty.resolver.dns.DnsQueryContext$3
dup
aload 0
aload 3
invokespecial io.netty.resolver.dns.DnsQueryContext$3.<init>:(Lio/netty/resolver/dns/DnsQueryContext;Lio/netty/channel/ChannelFuture;)V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 6 1 query Lio/netty/handler/codec/dns/DnsQuery;
0 6 2 writePromise Lio/netty/channel/ChannelPromise;
1 6 3 writeFuture Lio/netty/channel/ChannelFuture;
MethodParameters:
Name Flags
query final
writePromise final
private void onQueryWriteCompletion(io.netty.channel.ChannelFuture);
descriptor: (Lio/netty/channel/ChannelFuture;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelFuture.isSuccess:()Z
ifne 3
1: aload 0
ldc "failed to send a query"
aload 1
invokeinterface io.netty.channel.ChannelFuture.cause:()Ljava/lang/Throwable;
invokevirtual io.netty.resolver.dns.DnsQueryContext.setFailure:(Ljava/lang/String;Ljava/lang/Throwable;)V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
invokevirtual io.netty.resolver.dns.DnsNameResolver.queryTimeoutMillis:()J
lstore 2
start local 2 4: lload 2
lconst_0
lcmp
ifle 8
5: aload 0
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.ch:Lio/netty/channel/socket/DatagramChannel;
invokeinterface io.netty.channel.socket.DatagramChannel.eventLoop:()Lio/netty/channel/EventLoop;
new io.netty.resolver.dns.DnsQueryContext$4
dup
aload 0
lload 2
invokespecial io.netty.resolver.dns.DnsQueryContext$4.<init>:(Lio/netty/resolver/dns/DnsQueryContext;J)V
6: lload 2
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
7: invokeinterface io.netty.channel.EventLoop.schedule:(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Lio/netty/util/concurrent/ScheduledFuture;
putfield io.netty.resolver.dns.DnsQueryContext.timeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
8: StackMap locals: long
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 9 1 writeFuture Lio/netty/channel/ChannelFuture;
4 9 2 queryTimeoutMillis J
MethodParameters:
Name Flags
writeFuture
void finish(io.netty.channel.AddressedEnvelope<? extends io.netty.handler.codec.dns.DnsResponse, java.net.InetSocketAddress>);
descriptor: (Lio/netty/channel/AddressedEnvelope;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.AddressedEnvelope.content:()Ljava/lang/Object;
checkcast io.netty.handler.codec.dns.DnsResponse
astore 2
start local 2 1: aload 2
getstatic io.netty.handler.codec.dns.DnsSection.QUESTION:Lio/netty/handler/codec/dns/DnsSection;
invokeinterface io.netty.handler.codec.dns.DnsResponse.count:(Lio/netty/handler/codec/dns/DnsSection;)I
iconst_1
if_icmpeq 4
2: getstatic io.netty.resolver.dns.DnsQueryContext.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Received a DNS response with invalid number of questions: {}"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
3: return
4: StackMap locals: io.netty.handler.codec.dns.DnsResponse
StackMap stack:
aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.question:()Lio/netty/handler/codec/dns/DnsQuestion;
aload 2
getstatic io.netty.handler.codec.dns.DnsSection.QUESTION:Lio/netty/handler/codec/dns/DnsSection;
invokeinterface io.netty.handler.codec.dns.DnsResponse.recordAt:(Lio/netty/handler/codec/dns/DnsSection;)Lio/netty/handler/codec/dns/DnsRecord;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifne 7
5: getstatic io.netty.resolver.dns.DnsQueryContext.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Received a mismatching DNS response: {}"
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
6: return
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContext.setSuccess:(Lio/netty/channel/AddressedEnvelope;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 9 1 envelope Lio/netty/channel/AddressedEnvelope<+Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;
1 9 2 res Lio/netty/handler/codec/dns/DnsResponse;
Signature: (Lio/netty/channel/AddressedEnvelope<+Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;)V
MethodParameters:
Name Flags
envelope
private void setSuccess(io.netty.channel.AddressedEnvelope<? extends io.netty.handler.codec.dns.DnsResponse, java.net.InetSocketAddress>);
descriptor: (Lio/netty/channel/AddressedEnvelope;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.queryContextManager:Lio/netty/resolver/dns/DnsQueryContextManager;
aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.nameServerAddr:()Ljava/net/InetSocketAddress;
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.id:I
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.remove:(Ljava/net/InetSocketAddress;I)Lio/netty/resolver/dns/DnsQueryContext;
pop
1: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.timeoutFuture:Lio/netty/util/concurrent/ScheduledFuture;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
iconst_0
invokeinterface io.netty.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
4: StackMap locals: io.netty.util.concurrent.ScheduledFuture
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.promise:Lio/netty/util/concurrent/Promise;
astore 3
start local 3 5: aload 3
invokeinterface io.netty.util.concurrent.Promise.setUncancellable:()Z
ifeq 10
6: aload 1
invokeinterface io.netty.channel.AddressedEnvelope.retain:()Lio/netty/channel/AddressedEnvelope;
7: astore 4
start local 4 8: aload 3
aload 4
invokeinterface io.netty.util.concurrent.Promise.trySuccess:(Ljava/lang/Object;)Z
ifne 10
9: aload 1
invokeinterface io.netty.channel.AddressedEnvelope.release:()Z
pop
end local 4 10: StackMap locals: io.netty.util.concurrent.Promise
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 11 1 envelope Lio/netty/channel/AddressedEnvelope<+Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;
2 11 2 timeoutFuture Lio/netty/util/concurrent/ScheduledFuture<*>;
5 11 3 promise Lio/netty/util/concurrent/Promise<Lio/netty/channel/AddressedEnvelope<Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;>;
8 10 4 castResponse Lio/netty/channel/AddressedEnvelope<Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;
Signature: (Lio/netty/channel/AddressedEnvelope<+Lio/netty/handler/codec/dns/DnsResponse;Ljava/net/InetSocketAddress;>;)V
MethodParameters:
Name Flags
envelope
private void setFailure(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.nameServerAddr:()Ljava/net/InetSocketAddress;
astore 3
start local 3 1: aload 0
getfield io.netty.resolver.dns.DnsQueryContext.parent:Lio/netty/resolver/dns/DnsNameResolver;
getfield io.netty.resolver.dns.DnsNameResolver.queryContextManager:Lio/netty/resolver/dns/DnsQueryContextManager;
aload 3
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.id:I
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.remove:(Ljava/net/InetSocketAddress;I)Lio/netty/resolver/dns/DnsQueryContext;
pop
2: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.String.length:()I
bipush 64
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 4
start local 4 3: aload 4
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
4: aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
5: ldc "] "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " (no stack trace available)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 2
ifnonnull 11
9: new io.netty.resolver.dns.DnsNameResolverTimeoutException
dup
aload 3
aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.question:()Lio/netty/handler/codec/dns/DnsQuestion;
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.resolver.dns.DnsNameResolverTimeoutException.<init>:(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/String;)V
astore 5
start local 5 10: goto 12
end local 5 11: StackMap locals: java.net.InetSocketAddress java.lang.StringBuilder
StackMap stack:
new io.netty.resolver.dns.DnsNameResolverException
dup
aload 3
aload 0
invokevirtual io.netty.resolver.dns.DnsQueryContext.question:()Lio/netty/handler/codec/dns/DnsQuestion;
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial io.netty.resolver.dns.DnsNameResolverException.<init>:(Ljava/net/InetSocketAddress;Lio/netty/handler/codec/dns/DnsQuestion;Ljava/lang/String;Ljava/lang/Throwable;)V
astore 5
start local 5 12: StackMap locals: io.netty.resolver.dns.DnsNameResolverException
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsQueryContext.promise:Lio/netty/util/concurrent/Promise;
aload 5
invokeinterface io.netty.util.concurrent.Promise.tryFailure:(Ljava/lang/Throwable;)Z
pop
13: 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 14 0 this Lio/netty/resolver/dns/DnsQueryContext;
0 14 1 message Ljava/lang/String;
0 14 2 cause Ljava/lang/Throwable;
1 14 3 nameServerAddr Ljava/net/InetSocketAddress;
3 14 4 buf Ljava/lang/StringBuilder;
10 11 5 e Lio/netty/resolver/dns/DnsNameResolverException;
12 14 5 e Lio/netty/resolver/dns/DnsNameResolverException;
MethodParameters:
Name Flags
message
cause
}
SourceFile: "DnsQueryContext.java"
NestMembers:
io.netty.resolver.dns.DnsQueryContext$1 io.netty.resolver.dns.DnsQueryContext$2 io.netty.resolver.dns.DnsQueryContext$3 io.netty.resolver.dns.DnsQueryContext$4
InnerClasses:
io.netty.resolver.dns.DnsQueryContext$1
io.netty.resolver.dns.DnsQueryContext$2
io.netty.resolver.dns.DnsQueryContext$3
io.netty.resolver.dns.DnsQueryContext$4