public class com.mongodb.selector.ReadPreferenceServerSelector implements com.mongodb.selector.ServerSelector
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.selector.ReadPreferenceServerSelector
super_class: java.lang.Object
{
private final com.mongodb.ReadPreference readPreference;
descriptor: Lcom/mongodb/ReadPreference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.mongodb.ReadPreference);
descriptor: (Lcom/mongodb/ReadPreference;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "readPreference"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.ReadPreference
putfield com.mongodb.selector.ReadPreferenceServerSelector.readPreference:Lcom/mongodb/ReadPreference;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/selector/ReadPreferenceServerSelector;
0 3 1 readPreference Lcom/mongodb/ReadPreference;
MethodParameters:
Name Flags
readPreference final
public com.mongodb.ReadPreference getReadPreference();
descriptor: ()Lcom/mongodb/ReadPreference;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.selector.ReadPreferenceServerSelector.readPreference:Lcom/mongodb/ReadPreference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/selector/ReadPreferenceServerSelector;
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=2, 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.SINGLE:Lcom/mongodb/connection/ClusterConnectionMode;
if_acmpne 2
1: aload 1
invokevirtual com.mongodb.connection.ClusterDescription.getAny:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.selector.ReadPreferenceServerSelector.readPreference:Lcom/mongodb/ReadPreference;
aload 1
invokevirtual com.mongodb.ReadPreference.choose:(Lcom/mongodb/connection/ClusterDescription;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/selector/ReadPreferenceServerSelector;
0 3 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=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ReadPreferenceServerSelector{readPreference="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.selector.ReadPreferenceServerSelector.readPreference:Lcom/mongodb/ReadPreference;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)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/ReadPreferenceServerSelector;
}
SourceFile: "ReadPreferenceServerSelector.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()