class com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor implements com.mongodb.internal.connection.DnsSrvRecordMonitor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor
super_class: java.lang.Object
{
private static final com.mongodb.diagnostics.logging.Logger LOGGER;
descriptor: Lcom/mongodb/diagnostics/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String hostName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long rescanFrequencyMillis;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long noRecordsRescanFrequencyMillis;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.connection.DnsSrvRecordInitializer dnsSrvRecordInitializer;
descriptor: Lcom/mongodb/internal/connection/DnsSrvRecordInitializer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.dns.DnsResolver dnsResolver;
descriptor: Lcom/mongodb/internal/dns/DnsResolver;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Thread monitorThread;
descriptor: Ljava/lang/Thread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isClosed;
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 "cluster"
invokestatic com.mongodb.diagnostics.logging.Loggers.getLogger:(Ljava/lang/String;)Lcom/mongodb/diagnostics/logging/Logger;
putstatic com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, long, long, com.mongodb.internal.connection.DnsSrvRecordInitializer, com.mongodb.connection.ClusterId, com.mongodb.internal.dns.DnsResolver);
descriptor: (Ljava/lang/String;JJLcom/mongodb/internal/connection/DnsSrvRecordInitializer;Lcom/mongodb/connection/ClusterId;Lcom/mongodb/internal/dns/DnsResolver;)V
flags: (0x0000)
Code:
stack=7, locals=9, args_size=7
start local 0 start local 1 start local 2 start local 4 start local 6 start local 7 start local 8 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.hostName:Ljava/lang/String;
2: aload 0
lload 2
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.rescanFrequencyMillis:J
3: aload 0
lload 4
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.noRecordsRescanFrequencyMillis:J
4: aload 0
aload 6
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.dnsSrvRecordInitializer:Lcom/mongodb/internal/connection/DnsSrvRecordInitializer;
5: aload 0
aload 8
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.dnsResolver:Lcom/mongodb/internal/dns/DnsResolver;
6: aload 0
new java.lang.Thread
dup
new com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor$DnsSrvRecordMonitorRunnable
dup
aload 0
invokespecial com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor$DnsSrvRecordMonitorRunnable.<init>:(Lcom/mongodb/internal/connection/DefaultDnsSrvRecordMonitor;)V
new java.lang.StringBuilder
dup
ldc "cluster-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "-srv-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;Ljava/lang/String;)V
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.monitorThread:Ljava/lang/Thread;
7: aload 0
getfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.monitorThread:Ljava/lang/Thread;
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
8: return
end local 8 end local 7 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/internal/connection/DefaultDnsSrvRecordMonitor;
0 9 1 hostName Ljava/lang/String;
0 9 2 rescanFrequencyMillis J
0 9 4 noRecordsRescanFrequencyMillis J
0 9 6 dnsSrvRecordInitializer Lcom/mongodb/internal/connection/DnsSrvRecordInitializer;
0 9 7 clusterId Lcom/mongodb/connection/ClusterId;
0 9 8 dnsResolver Lcom/mongodb/internal/dns/DnsResolver;
MethodParameters:
Name Flags
hostName final
rescanFrequencyMillis final
noRecordsRescanFrequencyMillis final
dnsSrvRecordInitializer final
clusterId final
dnsResolver final
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.monitorThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/DefaultDnsSrvRecordMonitor;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.isClosed:Z
1: aload 0
getfield com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor.monitorThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/DefaultDnsSrvRecordMonitor;
}
SourceFile: "DefaultDnsSrvRecordMonitor.java"
NestMembers:
com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor$DnsSrvRecordMonitorRunnable
InnerClasses:
private DnsSrvRecordMonitorRunnable = com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor$DnsSrvRecordMonitorRunnable of com.mongodb.internal.connection.DefaultDnsSrvRecordMonitor