public class com.mongodb.binding.SingleServerBinding extends com.mongodb.internal.binding.AbstractReferenceCounted implements com.mongodb.binding.ReadWriteBinding
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.binding.SingleServerBinding
super_class: com.mongodb.internal.binding.AbstractReferenceCounted
{
private final com.mongodb.connection.Cluster cluster;
descriptor: Lcom/mongodb/connection/Cluster;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.ServerAddress serverAddress;
descriptor: Lcom/mongodb/ServerAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.ReadPreference readPreference;
descriptor: Lcom/mongodb/ReadPreference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.mongodb.connection.Cluster, com.mongodb.ServerAddress);
descriptor: (Lcom/mongodb/connection/Cluster;Lcom/mongodb/ServerAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic com.mongodb.ReadPreference.primary:()Lcom/mongodb/ReadPreference;
invokespecial com.mongodb.binding.SingleServerBinding.<init>:(Lcom/mongodb/connection/Cluster;Lcom/mongodb/ServerAddress;Lcom/mongodb/ReadPreference;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/binding/SingleServerBinding;
0 2 1 cluster Lcom/mongodb/connection/Cluster;
0 2 2 serverAddress Lcom/mongodb/ServerAddress;
MethodParameters:
Name Flags
cluster final
serverAddress final
public void <init>(com.mongodb.connection.Cluster, com.mongodb.ServerAddress, com.mongodb.ReadPreference);
descriptor: (Lcom/mongodb/connection/Cluster;Lcom/mongodb/ServerAddress;Lcom/mongodb/ReadPreference;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.mongodb.internal.binding.AbstractReferenceCounted.<init>:()V
1: aload 0
ldc "cluster"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.connection.Cluster
putfield com.mongodb.binding.SingleServerBinding.cluster:Lcom/mongodb/connection/Cluster;
2: aload 0
ldc "serverAddress"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.ServerAddress
putfield com.mongodb.binding.SingleServerBinding.serverAddress:Lcom/mongodb/ServerAddress;
3: aload 0
ldc "readPreference"
aload 3
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.mongodb.ReadPreference
putfield com.mongodb.binding.SingleServerBinding.readPreference:Lcom/mongodb/ReadPreference;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/binding/SingleServerBinding;
0 5 1 cluster Lcom/mongodb/connection/Cluster;
0 5 2 serverAddress Lcom/mongodb/ServerAddress;
0 5 3 readPreference Lcom/mongodb/ReadPreference;
MethodParameters:
Name Flags
cluster final
serverAddress final
readPreference final
public com.mongodb.binding.ConnectionSource getWriteConnectionSource();
descriptor: ()Lcom/mongodb/binding/ConnectionSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource
dup
aload 0
invokespecial com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource.<init>:(Lcom/mongodb/binding/SingleServerBinding;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/binding/SingleServerBinding;
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.binding.SingleServerBinding.readPreference:Lcom/mongodb/ReadPreference;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/binding/SingleServerBinding;
public com.mongodb.binding.ConnectionSource getReadConnectionSource();
descriptor: ()Lcom/mongodb/binding/ConnectionSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource
dup
aload 0
invokespecial com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource.<init>:(Lcom/mongodb/binding/SingleServerBinding;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/binding/SingleServerBinding;
public com.mongodb.session.SessionContext getSessionContext();
descriptor: ()Lcom/mongodb/session/SessionContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic com.mongodb.internal.connection.NoOpSessionContext.INSTANCE:Lcom/mongodb/internal/connection/NoOpSessionContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/binding/SingleServerBinding;
public com.mongodb.binding.SingleServerBinding retain();
descriptor: ()Lcom/mongodb/binding/SingleServerBinding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.mongodb.internal.binding.AbstractReferenceCounted.retain:()Lcom/mongodb/binding/ReferenceCounted;
pop
1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/binding/SingleServerBinding;
public com.mongodb.binding.ReadBinding retain();
descriptor: ()Lcom/mongodb/binding/ReadBinding;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.binding.SingleServerBinding.retain:()Lcom/mongodb/binding/SingleServerBinding;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.mongodb.binding.WriteBinding retain();
descriptor: ()Lcom/mongodb/binding/WriteBinding;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.binding.SingleServerBinding.retain:()Lcom/mongodb/binding/SingleServerBinding;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.mongodb.binding.ReadWriteBinding retain();
descriptor: ()Lcom/mongodb/binding/ReadWriteBinding;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.binding.SingleServerBinding.retain:()Lcom/mongodb/binding/SingleServerBinding;
areturn
LocalVariableTable:
Start End Slot Name Signature
public com.mongodb.binding.ReferenceCounted retain();
descriptor: ()Lcom/mongodb/binding/ReferenceCounted;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.binding.SingleServerBinding.retain:()Lcom/mongodb/binding/SingleServerBinding;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "SingleServerBinding.java"
NestMembers:
com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource
InnerClasses:
private final SingleServerBindingConnectionSource = com.mongodb.binding.SingleServerBinding$SingleServerBindingConnectionSource of com.mongodb.binding.SingleServerBinding
RuntimeVisibleAnnotations:
java.lang.Deprecated()