public class org.apache.cassandra.streaming.DefaultConnectionFactory implements org.apache.cassandra.streaming.StreamConnectionFactory
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.streaming.DefaultConnectionFactory
  super_class: java.lang.Object
{
  private static final org.slf4j.Logger logger;
    descriptor: Lorg/slf4j/Logger;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final int MAX_CONNECT_ATTEMPTS;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 3

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 32
            ldc Lorg/apache/cassandra/streaming/DefaultConnectionFactory;
            invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
            putstatic org.apache.cassandra.streaming.DefaultConnectionFactory.logger:Lorg/slf4j/Logger;
         1: .line 34
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.streaming.DefaultConnectionFactory this
         0: .line 30
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // org.apache.cassandra.streaming.DefaultConnectionFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/streaming/DefaultConnectionFactory;

  public java.net.Socket createConnection(java.net.InetAddress);
    descriptor: (Ljava/net/InetAddress;)Ljava/net/Socket;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=8, args_size=2
        start local 0 // org.apache.cassandra.streaming.DefaultConnectionFactory this
        start local 1 // java.net.InetAddress peer
         0: .line 47
            iconst_0
            istore 2 /* attempts */
        start local 2 // int attempts
         1: .line 50
      StackMap locals: int
      StackMap stack:
            aconst_null
            astore 3 /* socket */
        start local 3 // java.net.Socket socket
         2: .line 53
            aload 1 /* peer */
            invokestatic org.apache.cassandra.net.OutboundTcpConnectionPool.newSocket:(Ljava/net/InetAddress;)Ljava/net/Socket;
            astore 3 /* socket */
         3: .line 54
            aload 3 /* socket */
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getStreamingSocketTimeout:()I
            invokevirtual java.net.Socket.setSoTimeout:(I)V
         4: .line 55
            aload 3 /* socket */
            iconst_1
            invokevirtual java.net.Socket.setKeepAlive:(Z)V
         5: .line 56
            aload 3 /* socket */
         6: areturn
         7: .line 58
      StackMap locals: org.apache.cassandra.streaming.DefaultConnectionFactory java.net.InetAddress int java.net.Socket
      StackMap stack: java.io.IOException
            astore 4 /* e */
        start local 4 // java.io.IOException e
         8: .line 60
            aload 3 /* socket */
            ifnull 10
         9: .line 62
            aload 3 /* socket */
            invokevirtual java.net.Socket.close:()V
        10: .line 64
      StackMap locals: java.io.IOException
      StackMap stack:
            iinc 2 /* attempts */ 1
            iload 2 /* attempts */
            iconst_3
            if_icmplt 12
        11: .line 65
            aload 4 /* e */
            athrow
        12: .line 67
      StackMap locals:
      StackMap stack:
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRpcTimeout:()J
            ldc 2.0
            iload 2 /* attempts */
            i2d
            invokestatic java.lang.Math.pow:(DD)D
            d2l
            lmul
            lstore 5 /* waitms */
        start local 5 // long waitms
        13: .line 68
            getstatic org.apache.cassandra.streaming.DefaultConnectionFactory.logger:Lorg/slf4j/Logger;
            ldc "Failed attempt {} to connect to {}. Retrying in {} ms. ({})"
            iconst_4
            anewarray java.lang.Object
            dup
            iconst_0
            iload 2 /* attempts */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 1 /* peer */
            aastore
            dup
            iconst_2
            lload 5 /* waitms */
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            aastore
            dup
            iconst_3
            aload 4 /* e */
            aastore
            invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
        14: .line 71
            lload 5 /* waitms */
            invokestatic java.lang.Thread.sleep:(J)V
        15: .line 72
            goto 1
        16: .line 73
      StackMap locals: org.apache.cassandra.streaming.DefaultConnectionFactory java.net.InetAddress int java.net.Socket java.io.IOException long
      StackMap stack: java.lang.InterruptedException
            astore 7 /* wtf */
        start local 7 // java.lang.InterruptedException wtf
        17: .line 75
            new java.io.IOException
            dup
            ldc "interrupted"
            aload 7 /* wtf */
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 7 // java.lang.InterruptedException wtf
        end local 5 // long waitms
        end local 4 // java.io.IOException e
        end local 3 // java.net.Socket socket
        end local 2 // int attempts
        end local 1 // java.net.InetAddress peer
        end local 0 // org.apache.cassandra.streaming.DefaultConnectionFactory this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   18     0      this  Lorg/apache/cassandra/streaming/DefaultConnectionFactory;
            0   18     1      peer  Ljava/net/InetAddress;
            1   18     2  attempts  I
            2   18     3    socket  Ljava/net/Socket;
            8   18     4         e  Ljava/io/IOException;
           13   18     5    waitms  J
           17   18     7       wtf  Ljava/lang/InterruptedException;
      Exception table:
        from    to  target  type
           2     6       7  Class java.io.IOException
          14    15      16  Class java.lang.InterruptedException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      peer  
}
SourceFile: "DefaultConnectionFactory.java"