public final class com.mongodb.connection.ServerSettings$Builder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.connection.ServerSettings$Builder
super_class: java.lang.Object
{
private long heartbeatFrequencyMS;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long minHeartbeatFrequencyMS;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private java.util.List<com.mongodb.event.ServerListener> serverListeners;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/mongodb/event/ServerListener;>;
private java.util.List<com.mongodb.event.ServerMonitorListener> serverMonitorListeners;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/mongodb/event/ServerMonitorListener;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc 10000
putfield com.mongodb.connection.ServerSettings$Builder.heartbeatFrequencyMS:J
2: aload 0
ldc 500
putfield com.mongodb.connection.ServerSettings$Builder.minHeartbeatFrequencyMS:J
3: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.mongodb.connection.ServerSettings$Builder.serverListeners:Ljava/util/List;
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.mongodb.connection.ServerSettings$Builder.serverMonitorListeners:Ljava/util/List;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ServerSettings$Builder;
public com.mongodb.connection.ServerSettings$Builder applySettings(com.mongodb.connection.ServerSettings);
descriptor: (Lcom/mongodb/connection/ServerSettings;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: ldc "serverSettings"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
aload 1
getfield com.mongodb.connection.ServerSettings.heartbeatFrequencyMS:J
putfield com.mongodb.connection.ServerSettings$Builder.heartbeatFrequencyMS:J
2: aload 0
aload 1
getfield com.mongodb.connection.ServerSettings.minHeartbeatFrequencyMS:J
putfield com.mongodb.connection.ServerSettings$Builder.minHeartbeatFrequencyMS:J
3: aload 0
new java.util.ArrayList
dup
aload 1
getfield com.mongodb.connection.ServerSettings.serverListeners:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.mongodb.connection.ServerSettings$Builder.serverListeners:Ljava/util/List;
4: aload 0
new java.util.ArrayList
dup
aload 1
getfield com.mongodb.connection.ServerSettings.serverMonitorListeners:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.mongodb.connection.ServerSettings$Builder.serverMonitorListeners:Ljava/util/List;
5: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 6 1 serverSettings Lcom/mongodb/connection/ServerSettings;
MethodParameters:
Name Flags
serverSettings final
public com.mongodb.connection.ServerSettings$Builder heartbeatFrequency(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield com.mongodb.connection.ServerSettings$Builder.heartbeatFrequencyMS:J
1: aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 2 1 heartbeatFrequency J
0 2 3 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
heartbeatFrequency final
timeUnit final
public com.mongodb.connection.ServerSettings$Builder minHeartbeatFrequency(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield com.mongodb.connection.ServerSettings$Builder.minHeartbeatFrequencyMS:J
1: aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 2 1 minHeartbeatFrequency J
0 2 3 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
minHeartbeatFrequency final
timeUnit final
public com.mongodb.connection.ServerSettings$Builder addServerListener(com.mongodb.event.ServerListener);
descriptor: (Lcom/mongodb/event/ServerListener;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "serverListener"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.mongodb.connection.ServerSettings$Builder.serverListeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 3 1 serverListener Lcom/mongodb/event/ServerListener;
MethodParameters:
Name Flags
serverListener final
public com.mongodb.connection.ServerSettings$Builder addServerMonitorListener(com.mongodb.event.ServerMonitorListener);
descriptor: (Lcom/mongodb/event/ServerMonitorListener;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: ldc "serverMonitorListener"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.mongodb.connection.ServerSettings$Builder.serverMonitorListeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 3 1 serverMonitorListener Lcom/mongodb/event/ServerMonitorListener;
MethodParameters:
Name Flags
serverMonitorListener final
public com.mongodb.connection.ServerSettings$Builder applyConnectionString(com.mongodb.ConnectionString);
descriptor: (Lcom/mongodb/ConnectionString;)Lcom/mongodb/connection/ServerSettings$Builder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.mongodb.ConnectionString.getHeartbeatFrequency:()Ljava/lang/Integer;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
aload 2
invokevirtual java.lang.Integer.intValue:()I
i2l
putfield com.mongodb.connection.ServerSettings$Builder.heartbeatFrequencyMS:J
3: StackMap locals: java.lang.Integer
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/connection/ServerSettings$Builder;
0 4 1 connectionString Lcom/mongodb/ConnectionString;
1 4 2 heartbeatFrequency Ljava/lang/Integer;
MethodParameters:
Name Flags
connectionString final
public com.mongodb.connection.ServerSettings build();
descriptor: ()Lcom/mongodb/connection/ServerSettings;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.mongodb.connection.ServerSettings
dup
aload 0
invokespecial com.mongodb.connection.ServerSettings.<init>:(Lcom/mongodb/connection/ServerSettings$Builder;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/connection/ServerSettings$Builder;
}
SourceFile: "ServerSettings.java"
NestHost: com.mongodb.connection.ServerSettings
InnerClasses:
public final Builder = com.mongodb.connection.ServerSettings$Builder of com.mongodb.connection.ServerSettings
RuntimeVisibleAnnotations:
com.mongodb.annotations.NotThreadSafe()