public class com.mongodb.client.internal.ClientSessionBinding implements com.mongodb.binding.ReadWriteBinding
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.mongodb.client.internal.ClientSessionBinding
  super_class: java.lang.Object
{
  private final com.mongodb.internal.binding.ClusterAwareReadWriteBinding wrapped;
    descriptor: Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final com.mongodb.client.ClientSession session;
    descriptor: Lcom/mongodb/client/ClientSession;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean ownsSession;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final com.mongodb.internal.session.ClientSessionContext sessionContext;
    descriptor: Lcom/mongodb/internal/session/ClientSessionContext;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  public void <init>(com.mongodb.client.ClientSession, boolean, com.mongodb.internal.binding.ClusterAwareReadWriteBinding);
    descriptor: (Lcom/mongodb/client/ClientSession;ZLcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
        start local 1 // com.mongodb.client.ClientSession session
        start local 2 // boolean ownsSession
        start local 3 // com.mongodb.internal.binding.ClusterAwareReadWriteBinding wrapped
         0: .line 45
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 46
            aload 0 /* this */
            aload 3 /* wrapped */
            putfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
         2: .line 47
            aload 0 /* this */
            ldc "session"
            aload 1 /* session */
            invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast com.mongodb.client.ClientSession
            putfield com.mongodb.client.internal.ClientSessionBinding.session:Lcom/mongodb/client/ClientSession;
         3: .line 48
            aload 0 /* this */
            iload 2 /* ownsSession */
            putfield com.mongodb.client.internal.ClientSessionBinding.ownsSession:Z
         4: .line 49
            aload 0 /* this */
            new com.mongodb.client.internal.ClientSessionBinding$SyncClientSessionContext
            dup
            aload 0 /* this */
            aload 1 /* session */
            invokespecial com.mongodb.client.internal.ClientSessionBinding$SyncClientSessionContext.<init>:(Lcom/mongodb/client/internal/ClientSessionBinding;Lcom/mongodb/client/ClientSession;)V
            putfield com.mongodb.client.internal.ClientSessionBinding.sessionContext:Lcom/mongodb/internal/session/ClientSessionContext;
         5: .line 50
            return
        end local 3 // com.mongodb.internal.binding.ClusterAwareReadWriteBinding wrapped
        end local 2 // boolean ownsSession
        end local 1 // com.mongodb.client.ClientSession session
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0         this  Lcom/mongodb/client/internal/ClientSessionBinding;
            0    6     1      session  Lcom/mongodb/client/ClientSession;
            0    6     2  ownsSession  Z
            0    6     3      wrapped  Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
    MethodParameters:
             Name  Flags
      session      final
      ownsSession  final
      wrapped      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 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 54
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getReadPreference:()Lcom/mongodb/ReadPreference;
            areturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  public int getCount();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 59
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getCount:()I
            ireturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  public com.mongodb.binding.ReadWriteBinding retain();
    descriptor: ()Lcom/mongodb/binding/ReadWriteBinding;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 64
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.retain:()Lcom/mongodb/binding/ReadWriteBinding;
            pop
         1: .line 65
            aload 0 /* this */
            areturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  public void release();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 70
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.release:()V
         1: .line 71
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.closeSessionIfCountIsZero:()V
         2: .line 72
            return
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  private void closeSessionIfCountIsZero();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 75
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.getCount:()I
            ifne 2
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.ownsSession:Z
            ifeq 2
         1: .line 76
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.session:Lcom/mongodb/client/ClientSession;
            invokeinterface com.mongodb.client.ClientSession.close:()V
         2: .line 78
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  public com.mongodb.binding.ConnectionSource getReadConnectionSource();
    descriptor: ()Lcom/mongodb/binding/ConnectionSource;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 82
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.isActiveShardedTxn:()Z
            ifeq 2
         1: .line 83
            new com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.pinServer:()Lcom/mongodb/ServerAddress;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getConnectionSource:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/binding/ConnectionSource;
            invokespecial com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.<init>:(Lcom/mongodb/client/internal/ClientSessionBinding;Lcom/mongodb/binding/ConnectionSource;)V
            areturn
         2: .line 85
      StackMap locals:
      StackMap stack:
            new com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getReadConnectionSource:()Lcom/mongodb/binding/ConnectionSource;
            invokespecial com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.<init>:(Lcom/mongodb/client/internal/ClientSessionBinding;Lcom/mongodb/binding/ConnectionSource;)V
            areturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  public com.mongodb.binding.ConnectionSource getWriteConnectionSource();
    descriptor: ()Lcom/mongodb/binding/ConnectionSource;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 90
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.isActiveShardedTxn:()Z
            ifeq 2
         1: .line 91
            new com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            aload 0 /* this */
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.pinServer:()Lcom/mongodb/ServerAddress;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getConnectionSource:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/binding/ConnectionSource;
            invokespecial com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.<init>:(Lcom/mongodb/client/internal/ClientSessionBinding;Lcom/mongodb/binding/ConnectionSource;)V
            areturn
         2: .line 93
      StackMap locals:
      StackMap stack:
            new com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource
            dup
            aload 0 /* this */
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getWriteConnectionSource:()Lcom/mongodb/binding/ConnectionSource;
            invokespecial com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource.<init>:(Lcom/mongodb/client/internal/ClientSessionBinding;Lcom/mongodb/binding/ConnectionSource;)V
            areturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  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 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 99
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.sessionContext:Lcom/mongodb/internal/session/ClientSessionContext;
            areturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  private boolean isActiveShardedTxn();
    descriptor: ()Z
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 103
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.session:Lcom/mongodb/client/ClientSession;
            invokeinterface com.mongodb.client.ClientSession.hasActiveTransaction:()Z
            ifeq 1
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getCluster:()Lcom/mongodb/connection/Cluster;
            invokeinterface com.mongodb.connection.Cluster.getDescription:()Lcom/mongodb/connection/ClusterDescription;
            invokevirtual com.mongodb.connection.ClusterDescription.getType:()Lcom/mongodb/connection/ClusterType;
            getstatic com.mongodb.connection.ClusterType.SHARDED:Lcom/mongodb/connection/ClusterType;
            if_acmpne 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/client/internal/ClientSessionBinding;

  private com.mongodb.ServerAddress pinServer();
    descriptor: ()Lcom/mongodb/ServerAddress;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // com.mongodb.client.internal.ClientSessionBinding this
         0: .line 107
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.session:Lcom/mongodb/client/ClientSession;
            invokeinterface com.mongodb.client.ClientSession.getPinnedServerAddress:()Lcom/mongodb/ServerAddress;
            astore 1 /* pinnedServerAddress */
        start local 1 // com.mongodb.ServerAddress pinnedServerAddress
         1: .line 108
            aload 1 /* pinnedServerAddress */
            ifnonnull 5
         2: .line 109
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getCluster:()Lcom/mongodb/connection/Cluster;
            new com.mongodb.selector.ReadPreferenceServerSelector
            dup
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.wrapped:Lcom/mongodb/internal/binding/ClusterAwareReadWriteBinding;
            invokeinterface com.mongodb.internal.binding.ClusterAwareReadWriteBinding.getReadPreference:()Lcom/mongodb/ReadPreference;
            invokespecial com.mongodb.selector.ReadPreferenceServerSelector.<init>:(Lcom/mongodb/ReadPreference;)V
            invokeinterface com.mongodb.connection.Cluster.selectServer:(Lcom/mongodb/selector/ServerSelector;)Lcom/mongodb/connection/Server;
            astore 2 /* server */
        start local 2 // com.mongodb.connection.Server server
         3: .line 110
            aload 2 /* server */
            invokeinterface com.mongodb.connection.Server.getDescription:()Lcom/mongodb/connection/ServerDescription;
            invokevirtual com.mongodb.connection.ServerDescription.getAddress:()Lcom/mongodb/ServerAddress;
            astore 1 /* pinnedServerAddress */
         4: .line 111
            aload 0 /* this */
            getfield com.mongodb.client.internal.ClientSessionBinding.session:Lcom/mongodb/client/ClientSession;
            aload 1 /* pinnedServerAddress */
            invokeinterface com.mongodb.client.ClientSession.setPinnedServerAddress:(Lcom/mongodb/ServerAddress;)V
        end local 2 // com.mongodb.connection.Server server
         5: .line 113
      StackMap locals: com.mongodb.ServerAddress
      StackMap stack:
            aload 1 /* pinnedServerAddress */
            areturn
        end local 1 // com.mongodb.ServerAddress pinnedServerAddress
        end local 0 // com.mongodb.client.internal.ClientSessionBinding this
      LocalVariableTable:
        Start  End  Slot                 Name  Signature
            0    6     0                 this  Lcom/mongodb/client/internal/ClientSessionBinding;
            1    6     1  pinnedServerAddress  Lcom/mongodb/ServerAddress;
            3    5     2               server  Lcom/mongodb/connection/Server;

  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: .line 1
            aload 0
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.retain:()Lcom/mongodb/binding/ReadWriteBinding;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  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: .line 1
            aload 0
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.retain:()Lcom/mongodb/binding/ReadWriteBinding;
            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: .line 1
            aload 0
            invokevirtual com.mongodb.client.internal.ClientSessionBinding.retain:()Lcom/mongodb/binding/ReadWriteBinding;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
SourceFile: "ClientSessionBinding.java"
NestMembers:
  com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource  com.mongodb.client.internal.ClientSessionBinding$SyncClientSessionContext
InnerClasses:
  private SessionBindingConnectionSource = com.mongodb.client.internal.ClientSessionBinding$SessionBindingConnectionSource of com.mongodb.client.internal.ClientSessionBinding
  private final SyncClientSessionContext = com.mongodb.client.internal.ClientSessionBinding$SyncClientSessionContext of com.mongodb.client.internal.ClientSessionBinding