public class com.mongodb.selector.LatencyMinimizingServerSelector implements com.mongodb.selector.ServerSelector
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.selector.LatencyMinimizingServerSelector
super_class: java.lang.Object
{
private final long acceptableLatencyDifferenceNanos;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
lload 1
aload 3
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
putfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
2: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 3 1 acceptableLatencyDifference J
0 3 3 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
acceptableLatencyDifference final
timeUnit final
public long getAcceptableLatencyDifference(java.util.concurrent.TimeUnit);
descriptor: (Ljava/util/concurrent/TimeUnit;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 1 1 timeUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
timeUnit final
public java.util.List<com.mongodb.connection.ServerDescription> select(com.mongodb.connection.ClusterDescription);
descriptor: (Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.mongodb.connection.ClusterDescription.getConnectionMode:()Lcom/mongodb/connection/ClusterConnectionMode;
getstatic com.mongodb.connection.ClusterConnectionMode.MULTIPLE:Lcom/mongodb/connection/ClusterConnectionMode;
if_acmpeq 2
1: aload 1
invokevirtual com.mongodb.connection.ClusterDescription.getAny:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.mongodb.connection.ClusterDescription.getAny:()Ljava/util/List;
3: aload 0
aload 1
invokevirtual com.mongodb.connection.ClusterDescription.getServerDescriptions:()Ljava/util/List;
invokevirtual com.mongodb.selector.LatencyMinimizingServerSelector.getFastestRoundTripTimeNanos:(Ljava/util/List;)J
4: invokevirtual com.mongodb.selector.LatencyMinimizingServerSelector.getServersWithAcceptableLatencyDifference:(Ljava/util/List;J)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 5 1 clusterDescription Lcom/mongodb/connection/ClusterDescription;
Signature: (Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
MethodParameters:
Name Flags
clusterDescription final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "LatencyMinimizingServerSelector{acceptableLatencyDifference="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.selector.LatencyMinimizingServerSelector
astore 2
start local 2 5: aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
aload 2
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
lcmp
ifne 6
iconst_1
ireturn
StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector
StackMap stack:
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 7 1 o Ljava/lang/Object;
5 7 2 that Lcom/mongodb/selector/LatencyMinimizingServerSelector;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
bipush 32
lushr
lxor
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
private long getFastestRoundTripTimeNanos(java.util.List<com.mongodb.connection.ServerDescription>);
descriptor: (Ljava/util/List;)J
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: ldc 9223372036854775807
lstore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 4
start local 4 3: aload 4
invokevirtual com.mongodb.connection.ServerDescription.isOk:()Z
ifne 5
4: goto 7
5: StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long com.mongodb.connection.ServerDescription java.util.Iterator
StackMap stack:
aload 4
invokevirtual com.mongodb.connection.ServerDescription.getRoundTripTimeNanos:()J
lload 2
lcmp
ifge 7
6: aload 4
invokevirtual com.mongodb.connection.ServerDescription.getRoundTripTimeNanos:()J
lstore 2
end local 4 7: StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 9 1 members Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
1 9 2 fastestRoundTripTime J
3 7 4 cur Lcom/mongodb/connection/ServerDescription;
Signature: (Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;)J
MethodParameters:
Name Flags
members final
private java.util.List<com.mongodb.connection.ServerDescription> getServersWithAcceptableLatencyDifference(java.util.List<com.mongodb.connection.ServerDescription>, long);
descriptor: (Ljava/util/List;J)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long java.util.List top java.util.Iterator
StackMap stack:
2: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.mongodb.connection.ServerDescription
astore 5
start local 5 3: aload 5
invokevirtual com.mongodb.connection.ServerDescription.isOk:()Z
ifne 5
4: goto 7
5: StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long java.util.List com.mongodb.connection.ServerDescription java.util.Iterator
StackMap stack:
aload 5
invokevirtual com.mongodb.connection.ServerDescription.getRoundTripTimeNanos:()J
aload 0
getfield com.mongodb.selector.LatencyMinimizingServerSelector.acceptableLatencyDifferenceNanos:J
lsub
lload 2
lcmp
ifgt 7
6: aload 4
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 7: StackMap locals: com.mongodb.selector.LatencyMinimizingServerSelector java.util.List long java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: aload 4
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/selector/LatencyMinimizingServerSelector;
0 9 1 servers Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
0 9 2 bestPingTime J
1 9 4 goodSecondaries Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
3 7 5 cur Lcom/mongodb/connection/ServerDescription;
Signature: (Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;J)Ljava/util/List<Lcom/mongodb/connection/ServerDescription;>;
MethodParameters:
Name Flags
servers final
bestPingTime final
}
SourceFile: "LatencyMinimizingServerSelector.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()