class com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable implements java.lang.Runnable
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable
  super_class: java.lang.Object
{
  private final com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage averageRoundTripTime;
    descriptor: Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  final com.mongodb.internal.connection.DefaultServerMonitor this$0;
    descriptor: Lcom/mongodb/internal/connection/DefaultServerMonitor;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  void <init>(com.mongodb.internal.connection.DefaultServerMonitor);
    descriptor: (Lcom/mongodb/internal/connection/DefaultServerMonitor;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
         0: .line 102
            aload 0 /* this */
            aload 1
            putfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 103
            aload 0 /* this */
            new com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage
            dup
            ldc 0.2
            invokespecial com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.<init>:(D)V
            putfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.averageRoundTripTime:Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
         2: .line 102
            return
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
    MethodParameters:
        Name  Flags
      this$0  final

  public synchronized void run();
    descriptor: ()V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=5, locals=6, args_size=1
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
         0: .line 108
            aconst_null
            astore 1 /* connection */
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
         1: .line 110
            aload 0 /* this */
            aconst_null
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.getConnectingServerDescription:(Ljava/lang/Throwable;)Lcom/mongodb/connection/ServerDescription;
            astore 2 /* currentServerDescription */
        start local 2 // com.mongodb.connection.ServerDescription currentServerDescription
         2: .line 111
            goto 41
         3: .line 112
      StackMap locals: com.mongodb.internal.connection.InternalConnection com.mongodb.connection.ServerDescription
      StackMap stack:
            aload 2 /* currentServerDescription */
            astore 3 /* previousServerDescription */
        start local 3 // com.mongodb.connection.ServerDescription previousServerDescription
         4: .line 114
            aload 1 /* connection */
            ifnonnull 11
         5: .line 115
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.internalConnectionFactory:Lcom/mongodb/internal/connection/InternalConnectionFactory;
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokeinterface com.mongodb.internal.connection.InternalConnectionFactory.create:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/internal/connection/InternalConnection;
            astore 1 /* connection */
         6: .line 117
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.open:()V
         7: .line 118
            goto 11
      StackMap locals: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable com.mongodb.internal.connection.InternalConnection com.mongodb.connection.ServerDescription com.mongodb.connection.ServerDescription
      StackMap stack: java.lang.Throwable
         8: astore 4 /* t */
        start local 4 // java.lang.Throwable t
         9: .line 119
            aconst_null
            astore 1 /* connection */
        10: .line 120
            aload 4 /* t */
            athrow
        end local 4 // java.lang.Throwable t
        11: .line 124
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* connection */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription:(Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/connection/ServerDescription;
            astore 2 /* currentServerDescription */
        12: .line 125
            goto 32
      StackMap locals:
      StackMap stack: com.mongodb.MongoSocketException
        13: pop
        14: .line 126
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.connectionPool:Lcom/mongodb/internal/connection/ConnectionPool;
            invokeinterface com.mongodb.internal.connection.ConnectionPool.invalidate:()V
        15: .line 127
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.close:()V
        16: .line 128
            aconst_null
            astore 1 /* connection */
        17: .line 129
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.internalConnectionFactory:Lcom/mongodb/internal/connection/InternalConnectionFactory;
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokeinterface com.mongodb.internal.connection.InternalConnectionFactory.create:(Lcom/mongodb/connection/ServerId;)Lcom/mongodb/internal/connection/InternalConnection;
            astore 1 /* connection */
        18: .line 131
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.open:()V
        19: .line 132
            goto 23
      StackMap locals:
      StackMap stack: java.lang.Throwable
        20: astore 4 /* t */
        start local 4 // java.lang.Throwable t
        21: .line 133
            aconst_null
            astore 1 /* connection */
        22: .line 134
            aload 4 /* t */
            athrow
        end local 4 // java.lang.Throwable t
        23: .line 137
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* connection */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.lookupServerDescription:(Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/connection/ServerDescription;
            astore 2 /* currentServerDescription */
        24: .line 138
            goto 32
      StackMap locals:
      StackMap stack: com.mongodb.MongoSocketException
        25: astore 4 /* e1 */
        start local 4 // com.mongodb.MongoSocketException e1
        26: .line 139
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.close:()V
        27: .line 140
            aconst_null
            astore 1 /* connection */
        28: .line 141
            aload 4 /* e1 */
            athrow
        end local 4 // com.mongodb.MongoSocketException e1
        29: .line 144
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 4 /* t */
        start local 4 // java.lang.Throwable t
        30: .line 145
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.averageRoundTripTime:Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
            invokevirtual com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.reset:()V
        31: .line 146
            aload 0 /* this */
            aload 4 /* t */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.getConnectingServerDescription:(Ljava/lang/Throwable;)Lcom/mongodb/connection/ServerDescription;
            astore 2 /* currentServerDescription */
        end local 4 // java.lang.Throwable t
        32: .line 149
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.isClosed:Z
            ifne 41
        33: .line 151
            aload 0 /* this */
            aload 3 /* previousServerDescription */
            aload 2 /* currentServerDescription */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.logStateChange:(Lcom/mongodb/connection/ServerDescription;Lcom/mongodb/connection/ServerDescription;)V
        34: .line 152
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverStateListener:Lcom/mongodb/internal/connection/ChangeListener;
            new com.mongodb.internal.connection.ChangeEvent
            dup
            aload 3 /* previousServerDescription */
        35: .line 153
            aload 2 /* currentServerDescription */
            invokespecial com.mongodb.internal.connection.ChangeEvent.<init>:(Ljava/lang/Object;Ljava/lang/Object;)V
        36: .line 152
            invokeinterface com.mongodb.internal.connection.ChangeListener.stateChanged:(Lcom/mongodb/internal/connection/ChangeEvent;)V
        37: .line 154
            goto 40
      StackMap locals:
      StackMap stack: java.lang.Throwable
        38: astore 4 /* t */
        start local 4 // java.lang.Throwable t
        39: .line 155
            getstatic com.mongodb.internal.connection.DefaultServerMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Exception in monitor thread during notification of server description state change"
            aload 4 /* t */
            invokeinterface com.mongodb.diagnostics.logging.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
        end local 4 // java.lang.Throwable t
        40: .line 157
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.waitForNext:()V
        end local 3 // com.mongodb.connection.ServerDescription previousServerDescription
        41: .line 111
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.isClosed:Z
            ifeq 3
        end local 2 // com.mongodb.connection.ServerDescription currentServerDescription
        42: .line 160
            goto 47
      StackMap locals: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable com.mongodb.internal.connection.InternalConnection
      StackMap stack: java.lang.Throwable
        43: astore 5
        44: .line 161
            aload 1 /* connection */
            ifnull 46
        45: .line 162
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.close:()V
        46: .line 164
      StackMap locals: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable com.mongodb.internal.connection.InternalConnection top top top java.lang.Throwable
      StackMap stack:
            aload 5
            athrow
        47: .line 161
      StackMap locals: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable com.mongodb.internal.connection.InternalConnection
      StackMap stack:
            aload 1 /* connection */
            ifnull 49
        48: .line 162
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.close:()V
        49: .line 165
      StackMap locals:
      StackMap stack:
            return
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot                       Name  Signature
            0   50     0                       this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
            1   50     1                 connection  Lcom/mongodb/internal/connection/InternalConnection;
            2   42     2   currentServerDescription  Lcom/mongodb/connection/ServerDescription;
            4   41     3  previousServerDescription  Lcom/mongodb/connection/ServerDescription;
            9   11     4                          t  Ljava/lang/Throwable;
           21   23     4                          t  Ljava/lang/Throwable;
           26   29     4                         e1  Lcom/mongodb/MongoSocketException;
           30   32     4                          t  Ljava/lang/Throwable;
           39   40     4                          t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           6     7       8  Class java.lang.Throwable
          11    12      13  Class com.mongodb.MongoSocketException
          18    19      20  Class java.lang.Throwable
          23    24      25  Class com.mongodb.MongoSocketException
           4    29      29  Class java.lang.Throwable
          33    37      38  Class java.lang.Throwable
           1    43      43  any

  private com.mongodb.connection.ServerDescription getConnectingServerDescription(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)Lcom/mongodb/connection/ServerDescription;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
        start local 1 // java.lang.Throwable exception
         0: .line 168
            invokestatic com.mongodb.connection.ServerDescription.builder:()Lcom/mongodb/connection/ServerDescription$Builder;
            getstatic com.mongodb.connection.ServerType.UNKNOWN:Lcom/mongodb/connection/ServerType;
            invokevirtual com.mongodb.connection.ServerDescription$Builder.type:(Lcom/mongodb/connection/ServerType;)Lcom/mongodb/connection/ServerDescription$Builder;
            getstatic com.mongodb.connection.ServerConnectionState.CONNECTING:Lcom/mongodb/connection/ServerConnectionState;
            invokevirtual com.mongodb.connection.ServerDescription$Builder.state:(Lcom/mongodb/connection/ServerConnectionState;)Lcom/mongodb/connection/ServerDescription$Builder;
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
            invokevirtual com.mongodb.connection.ServerDescription$Builder.address:(Lcom/mongodb/ServerAddress;)Lcom/mongodb/connection/ServerDescription$Builder;
            aload 1 /* exception */
            invokevirtual com.mongodb.connection.ServerDescription$Builder.exception:(Ljava/lang/Throwable;)Lcom/mongodb/connection/ServerDescription$Builder;
            invokevirtual com.mongodb.connection.ServerDescription$Builder.build:()Lcom/mongodb/connection/ServerDescription;
            areturn
        end local 1 // java.lang.Throwable exception
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    1     0       this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
            0    1     1  exception  Ljava/lang/Throwable;
    MethodParameters:
           Name  Flags
      exception  final

  private com.mongodb.connection.ServerDescription lookupServerDescription(com.mongodb.internal.connection.InternalConnection);
    descriptor: (Lcom/mongodb/internal/connection/InternalConnection;)Lcom/mongodb/connection/ServerDescription;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=8, locals=7, args_size=2
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
         0: .line 172
            getstatic com.mongodb.internal.connection.DefaultServerMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            invokeinterface com.mongodb.diagnostics.logging.Logger.isDebugEnabled:()Z
            ifeq 2
         1: .line 173
            getstatic com.mongodb.internal.connection.DefaultServerMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Checking status of %s"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface com.mongodb.diagnostics.logging.Logger.debug:(Ljava/lang/String;)V
         2: .line 175
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverMonitorListener:Lcom/mongodb/event/ServerMonitorListener;
            new com.mongodb.event.ServerHeartbeatStartedEvent
            dup
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
            invokespecial com.mongodb.event.ServerHeartbeatStartedEvent.<init>:(Lcom/mongodb/connection/ConnectionId;)V
            invokeinterface com.mongodb.event.ServerMonitorListener.serverHearbeatStarted:(Lcom/mongodb/event/ServerHeartbeatStartedEvent;)V
         3: .line 177
            invokestatic java.lang.System.nanoTime:()J
            lstore 2 /* start */
        start local 2 // long start
         4: .line 180
            ldc "admin"
            new org.bson.BsonDocument
            dup
            ldc "ismaster"
            new org.bson.BsonInt32
            dup
            iconst_1
            invokespecial org.bson.BsonInt32.<init>:(I)V
            invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.clusterClock:Lcom/mongodb/internal/connection/ClusterClock;
            aload 1 /* connection */
            invokestatic com.mongodb.internal.connection.CommandHelper.executeCommand:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/ClusterClock;Lcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
         5: .line 179
            astore 4 /* isMasterResult */
        start local 4 // org.bson.BsonDocument isMasterResult
         6: .line 181
            invokestatic java.lang.System.nanoTime:()J
            lload 2 /* start */
            lsub
            lstore 5 /* elapsedTimeNanos */
        start local 5 // long elapsedTimeNanos
         7: .line 182
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.averageRoundTripTime:Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
            lload 5 /* elapsedTimeNanos */
            invokevirtual com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.addSample:(J)J
            pop2
         8: .line 184
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverMonitorListener:Lcom/mongodb/event/ServerMonitorListener;
         9: .line 185
            new com.mongodb.event.ServerHeartbeatSucceededEvent
            dup
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
            aload 4 /* isMasterResult */
            lload 5 /* elapsedTimeNanos */
            invokespecial com.mongodb.event.ServerHeartbeatSucceededEvent.<init>:(Lcom/mongodb/connection/ConnectionId;Lorg/bson/BsonDocument;J)V
        10: .line 184
            invokeinterface com.mongodb.event.ServerMonitorListener.serverHeartbeatSucceeded:(Lcom/mongodb/event/ServerHeartbeatSucceededEvent;)V
        11: .line 187
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
            aload 4 /* isMasterResult */
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getServerVersion:()Lcom/mongodb/connection/ServerVersion;
        12: .line 188
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.averageRoundTripTime:Lcom/mongodb/internal/connection/ExponentiallyWeightedMovingAverage;
            invokevirtual com.mongodb.internal.connection.ExponentiallyWeightedMovingAverage.getAverage:()J
        13: .line 187
            invokestatic com.mongodb.internal.connection.DescriptionHelper.createServerDescription:(Lcom/mongodb/ServerAddress;Lorg/bson/BsonDocument;Lcom/mongodb/connection/ServerVersion;J)Lcom/mongodb/connection/ServerDescription;
        14: areturn
        end local 5 // long elapsedTimeNanos
        end local 4 // org.bson.BsonDocument isMasterResult
        15: .line 189
      StackMap locals: com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable com.mongodb.internal.connection.InternalConnection long
      StackMap stack: java.lang.RuntimeException
            astore 4 /* e */
        start local 4 // java.lang.RuntimeException e
        16: .line 190
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverMonitorListener:Lcom/mongodb/event/ServerMonitorListener;
        17: .line 191
            new com.mongodb.event.ServerHeartbeatFailedEvent
            dup
            aload 1 /* connection */
            invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
            invokevirtual com.mongodb.connection.ConnectionDescription.getConnectionId:()Lcom/mongodb/connection/ConnectionId;
            invokestatic java.lang.System.nanoTime:()J
            lload 2 /* start */
            lsub
            aload 4 /* e */
            invokespecial com.mongodb.event.ServerHeartbeatFailedEvent.<init>:(Lcom/mongodb/connection/ConnectionId;JLjava/lang/Throwable;)V
        18: .line 190
            invokeinterface com.mongodb.event.ServerMonitorListener.serverHeartbeatFailed:(Lcom/mongodb/event/ServerHeartbeatFailedEvent;)V
        19: .line 192
            aload 4 /* e */
            athrow
        end local 4 // java.lang.RuntimeException e
        end local 2 // long start
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   20     0              this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
            0   20     1        connection  Lcom/mongodb/internal/connection/InternalConnection;
            4   20     2             start  J
            6   15     4    isMasterResult  Lorg/bson/BsonDocument;
            7   15     5  elapsedTimeNanos  J
           16   20     4                 e  Ljava/lang/RuntimeException;
      Exception table:
        from    to  target  type
           4    14      15  Class java.lang.RuntimeException
    MethodParameters:
            Name  Flags
      connection  final

  private void logStateChange(com.mongodb.connection.ServerDescription, com.mongodb.connection.ServerDescription);
    descriptor: (Lcom/mongodb/connection/ServerDescription;Lcom/mongodb/connection/ServerDescription;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=3, args_size=3
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
        start local 1 // com.mongodb.connection.ServerDescription previousServerDescription
        start local 2 // com.mongodb.connection.ServerDescription currentServerDescription
         0: .line 198
            aload 1 /* previousServerDescription */
            aload 2 /* currentServerDescription */
            invokestatic com.mongodb.internal.connection.DefaultServerMonitor.shouldLogStageChange:(Lcom/mongodb/connection/ServerDescription;Lcom/mongodb/connection/ServerDescription;)Z
            ifeq 7
         1: .line 199
            aload 2 /* currentServerDescription */
            invokevirtual com.mongodb.connection.ServerDescription.getException:()Ljava/lang/Throwable;
            ifnull 6
         2: .line 200
            getstatic com.mongodb.internal.connection.DefaultServerMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Exception in monitor thread while connecting to server %s"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverId:Lcom/mongodb/connection/ServerId;
            invokevirtual com.mongodb.connection.ServerId.getAddress:()Lcom/mongodb/ServerAddress;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         3: .line 201
            aload 2 /* currentServerDescription */
            invokevirtual com.mongodb.connection.ServerDescription.getException:()Ljava/lang/Throwable;
         4: .line 200
            invokeinterface com.mongodb.diagnostics.logging.Logger.info:(Ljava/lang/String;Ljava/lang/Throwable;)V
         5: .line 202
            goto 7
         6: .line 203
      StackMap locals:
      StackMap stack:
            getstatic com.mongodb.internal.connection.DefaultServerMonitor.LOGGER:Lcom/mongodb/diagnostics/logging/Logger;
            ldc "Monitor thread successfully connected to server with description %s"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 2 /* currentServerDescription */
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface com.mongodb.diagnostics.logging.Logger.info:(Ljava/lang/String;)V
         7: .line 206
      StackMap locals:
      StackMap stack:
            return
        end local 2 // com.mongodb.connection.ServerDescription currentServerDescription
        end local 1 // com.mongodb.connection.ServerDescription previousServerDescription
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot                       Name  Signature
            0    8     0                       this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
            0    8     1  previousServerDescription  Lcom/mongodb/connection/ServerDescription;
            0    8     2   currentServerDescription  Lcom/mongodb/connection/ServerDescription;
    MethodParameters:
                           Name  Flags
      previousServerDescription  final
      currentServerDescription   final

  private void waitForNext();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=9, args_size=1
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
         0: .line 210
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.waitForSignalOrTimeout:()J
            lstore 1 /* timeRemaining */
        start local 1 // long timeRemaining
         1: .line 211
            lload 1 /* timeRemaining */
            lconst_0
            lcmp
            ifle 10
         2: .line 212
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverSettings:Lcom/mongodb/connection/ServerSettings;
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual com.mongodb.connection.ServerSettings.getHeartbeatFrequency:(Ljava/util/concurrent/TimeUnit;)J
            lload 1 /* timeRemaining */
            lsub
            lstore 3 /* timeWaiting */
        start local 3 // long timeWaiting
         3: .line 213
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverSettings:Lcom/mongodb/connection/ServerSettings;
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual com.mongodb.connection.ServerSettings.getMinHeartbeatFrequency:(Ljava/util/concurrent/TimeUnit;)J
            lstore 5 /* minimumNanosToWait */
        start local 5 // long minimumNanosToWait
         4: .line 214
            lload 3 /* timeWaiting */
            lload 5 /* minimumNanosToWait */
            lcmp
            ifge 10
         5: .line 215
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            lload 5 /* minimumNanosToWait */
            lload 3 /* timeWaiting */
            lsub
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
            lstore 7 /* millisToSleep */
        start local 7 // long millisToSleep
         6: .line 216
            lload 7 /* millisToSleep */
            lconst_0
            lcmp
            ifle 10
         7: .line 217
            lload 7 /* millisToSleep */
            invokestatic java.lang.Thread.sleep:(J)V
        end local 7 // long millisToSleep
        end local 5 // long minimumNanosToWait
        end local 3 // long timeWaiting
        end local 1 // long timeRemaining
         8: .line 221
            goto 10
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
         9: pop
        10: .line 224
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot                Name  Signature
            0   11     0                this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
            1    8     1       timeRemaining  J
            3    8     3         timeWaiting  J
            4    8     5  minimumNanosToWait  J
            6    8     7       millisToSleep  J
      Exception table:
        from    to  target  type
           0     8       9  Class java.lang.InterruptedException

  private long waitForSignalOrTimeout();
    descriptor: ()J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=4, args_size=1
        start local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
         0: .line 227
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.lock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.lock:()V
         1: .line 229
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.condition:Ljava/util/concurrent/locks/Condition;
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.serverSettings:Lcom/mongodb/connection/ServerSettings;
            getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
            invokevirtual com.mongodb.connection.ServerSettings.getHeartbeatFrequency:(Ljava/util/concurrent/TimeUnit;)J
            invokeinterface java.util.concurrent.locks.Condition.awaitNanos:(J)J
            lstore 2
         2: .line 231
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.lock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         3: .line 229
            lload 2
            lreturn
         4: .line 230
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
         5: .line 231
            aload 0 /* this */
            getfield com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable.this$0:Lcom/mongodb/internal/connection/DefaultServerMonitor;
            getfield com.mongodb.internal.connection.DefaultServerMonitor.lock:Ljava/util/concurrent/locks/Lock;
            invokeinterface java.util.concurrent.locks.Lock.unlock:()V
         6: .line 232
            aload 1
            athrow
        end local 0 // com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/mongodb/internal/connection/DefaultServerMonitor$ServerMonitorRunnable;
      Exception table:
        from    to  target  type
           1     2       4  any
    Exceptions:
      throws java.lang.InterruptedException
}
SourceFile: "DefaultServerMonitor.java"
NestHost: com.mongodb.internal.connection.DefaultServerMonitor
InnerClasses:
  public Builder = com.mongodb.connection.ServerDescription$Builder of com.mongodb.connection.ServerDescription
  ServerMonitorRunnable = com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitorRunnable of com.mongodb.internal.connection.DefaultServerMonitor