final class org.apache.cassandra.hints.HintsWriter$Session implements java.lang.AutoCloseable
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: org.apache.cassandra.hints.HintsWriter$Session
  super_class: java.lang.Object
{
  private final java.nio.ByteBuffer buffer;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final long initialSize;
    descriptor: J
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private long bytesWritten;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  final org.apache.cassandra.hints.HintsWriter this$0;
    descriptor: Lorg/apache/cassandra/hints/HintsWriter;
    flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC

  void <init>(org.apache.cassandra.hints.HintsWriter, java.nio.ByteBuffer, long);
    descriptor: (Lorg/apache/cassandra/hints/HintsWriter;Ljava/nio/ByteBuffer;J)V
    flags: (0x0000) 
    Code:
      stack=3, locals=5, args_size=4
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
        start local 2 // java.nio.ByteBuffer buffer
        start local 3 // long initialSize
         0: .line 167
            aload 0 /* this */
            aload 1
            putfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
         1: .line 166
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         2: .line 168
            aload 2 /* buffer */
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         3: .line 169
            aload 0 /* this */
            lconst_0
            putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
         4: .line 171
            aload 0 /* this */
            aload 2 /* buffer */
            putfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
         5: .line 172
            aload 0 /* this */
            lload 3 /* initialSize */
            putfield org.apache.cassandra.hints.HintsWriter$Session.initialSize:J
         6: .line 173
            return
        end local 3 // long initialSize
        end local 2 // java.nio.ByteBuffer buffer
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0         this  Lorg/apache/cassandra/hints/HintsWriter$Session;
            0    7     2       buffer  Ljava/nio/ByteBuffer;
            0    7     3  initialSize  J
    MethodParameters:
             Name  Flags
      this$0       final
      buffer       
      initialSize  

  long getBytesWritten();
    descriptor: ()J
    flags: (0x0000) 
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 178
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
            lreturn
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;
    RuntimeInvisibleAnnotations: 
      com.google.common.annotations.VisibleForTesting()
    RuntimeInvisibleTypeAnnotations: 
      METHOD_RETURN
        com.google.common.annotations.VisibleForTesting()

  long position();
    descriptor: ()J
    flags: (0x0000) 
    Code:
      stack=4, locals=1, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 183
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.initialSize:J
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
            ladd
            lreturn
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;

  void append(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
        start local 1 // java.nio.ByteBuffer hint
         0: .line 195
            aload 0 /* this */
            dup
            getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
            aload 1 /* hint */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            i2l
            ladd
            putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
         1: .line 198
            aload 1 /* hint */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmple 5
         2: .line 200
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
         3: .line 201
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
         4: .line 202
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         5: .line 207
      StackMap locals:
      StackMap stack:
            aload 1 /* hint */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmpgt 8
         6: .line 209
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            aload 1 /* hint */
            invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
            pop
         7: .line 210
            goto 9
         8: .line 213
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            aload 1 /* hint */
            invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
         9: .line 215
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.nio.ByteBuffer hint
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   10     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;
            0   10     1  hint  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      hint  

  void append(org.apache.cassandra.hints.Hint);
    descriptor: (Lorg/apache/cassandra/hints/Hint;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=9, args_size=2
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
        start local 1 // org.apache.cassandra.hints.Hint hint
         0: .line 228
            getstatic org.apache.cassandra.hints.Hint.serializer:Lorg/apache/cassandra/hints/Hint$Serializer;
            aload 1 /* hint */
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            getfield org.apache.cassandra.hints.HintsWriter.descriptor:Lorg/apache/cassandra/hints/HintsDescriptor;
            invokevirtual org.apache.cassandra.hints.HintsDescriptor.messagingVersion:()I
            invokevirtual org.apache.cassandra.hints.Hint$Serializer.serializedSize:(Lorg/apache/cassandra/hints/Hint;I)J
            l2i
            istore 2 /* hintSize */
        start local 2 // int hintSize
         1: .line 229
            iload 2 /* hintSize */
            bipush 12
            iadd
            istore 3 /* totalSize */
        start local 3 // int totalSize
         2: .line 231
            iload 3 /* totalSize */
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmple 4
         3: .line 232
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.flushBuffer:()V
         4: .line 234
      StackMap locals: int int
      StackMap stack:
            iload 3 /* totalSize */
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            if_icmpgt 6
         5: .line 235
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            goto 7
         6: .line 236
      StackMap locals:
      StackMap stack:
            iload 3 /* totalSize */
            invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
         7: .line 234
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
            astore 4 /* hintBuffer */
        start local 4 // java.nio.ByteBuffer hintBuffer
         8: .line 238
            new java.util.zip.CRC32
            dup
            invokespecial java.util.zip.CRC32.<init>:()V
            astore 5 /* crc */
        start local 5 // java.util.zip.CRC32 crc
         9: .line 239
            aconst_null
            astore 6
            aconst_null
            astore 7
        10: new org.apache.cassandra.io.util.DataOutputBufferFixed
            dup
            aload 4 /* hintBuffer */
            invokespecial org.apache.cassandra.io.util.DataOutputBufferFixed.<init>:(Ljava/nio/ByteBuffer;)V
            astore 8 /* out */
        start local 8 // org.apache.cassandra.io.util.DataOutputBufferFixed out
        11: .line 241
            aload 8 /* out */
            iload 2 /* hintSize */
            invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
        12: .line 242
            aload 5 /* crc */
            iload 2 /* hintSize */
            invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksumInt:(Ljava/util/zip/Checksum;I)V
        13: .line 243
            aload 8 /* out */
            aload 5 /* crc */
            invokevirtual java.util.zip.CRC32.getValue:()J
            l2i
            invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
        14: .line 245
            getstatic org.apache.cassandra.hints.Hint.serializer:Lorg/apache/cassandra/hints/Hint$Serializer;
            aload 1 /* hint */
            aload 8 /* out */
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            getfield org.apache.cassandra.hints.HintsWriter.descriptor:Lorg/apache/cassandra/hints/HintsDescriptor;
            invokevirtual org.apache.cassandra.hints.HintsDescriptor.messagingVersion:()I
            invokevirtual org.apache.cassandra.hints.Hint$Serializer.serialize:(Lorg/apache/cassandra/hints/Hint;Lorg/apache/cassandra/io/util/DataOutputPlus;I)V
        15: .line 246
            aload 5 /* crc */
            aload 4 /* hintBuffer */
            aload 4 /* hintBuffer */
            invokevirtual java.nio.ByteBuffer.position:()I
            iload 2 /* hintSize */
            isub
            iload 2 /* hintSize */
            invokestatic org.apache.cassandra.utils.FBUtilities.updateChecksum:(Ljava/util/zip/CRC32;Ljava/nio/ByteBuffer;II)V
        16: .line 247
            aload 8 /* out */
            aload 5 /* crc */
            invokevirtual java.util.zip.CRC32.getValue:()J
            l2i
            invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.writeInt:(I)V
        17: .line 248
            aload 8 /* out */
            ifnull 23
            aload 8 /* out */
            invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.close:()V
            goto 23
      StackMap locals: org.apache.cassandra.hints.HintsWriter$Session org.apache.cassandra.hints.Hint int int java.nio.ByteBuffer java.util.zip.CRC32 java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.DataOutputBufferFixed
      StackMap stack: java.lang.Throwable
        18: astore 6
            aload 8 /* out */
            ifnull 19
            aload 8 /* out */
            invokevirtual org.apache.cassandra.io.util.DataOutputBufferFixed.close:()V
        end local 8 // org.apache.cassandra.io.util.DataOutputBufferFixed out
      StackMap locals:
      StackMap stack:
        19: aload 6
            athrow
      StackMap locals:
      StackMap stack: java.lang.Throwable
        20: astore 7
            aload 6
            ifnonnull 21
            aload 7
            astore 6
            goto 22
      StackMap locals:
      StackMap stack:
        21: aload 6
            aload 7
            if_acmpeq 22
            aload 6
            aload 7
            invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
      StackMap locals:
      StackMap stack:
        22: aload 6
            athrow
        23: .line 250
      StackMap locals:
      StackMap stack:
            aload 4 /* hintBuffer */
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            if_acmpne 25
        24: .line 251
            aload 0 /* this */
            dup
            getfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
            iload 3 /* totalSize */
            i2l
            ladd
            putfield org.apache.cassandra.hints.HintsWriter$Session.bytesWritten:J
            goto 26
        25: .line 253
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 4 /* hintBuffer */
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            checkcast java.nio.ByteBuffer
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.append:(Ljava/nio/ByteBuffer;)V
        26: .line 254
      StackMap locals:
      StackMap stack:
            return
        end local 5 // java.util.zip.CRC32 crc
        end local 4 // java.nio.ByteBuffer hintBuffer
        end local 3 // int totalSize
        end local 2 // int hintSize
        end local 1 // org.apache.cassandra.hints.Hint hint
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0   27     0        this  Lorg/apache/cassandra/hints/HintsWriter$Session;
            0   27     1        hint  Lorg/apache/cassandra/hints/Hint;
            1   27     2    hintSize  I
            2   27     3   totalSize  I
            8   27     4  hintBuffer  Ljava/nio/ByteBuffer;
            9   27     5         crc  Ljava/util/zip/CRC32;
           11   19     8         out  Lorg/apache/cassandra/io/util/DataOutputBufferFixed;
      Exception table:
        from    to  target  type
          11    17      18  any
          10    20      20  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      hint  

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 262
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.flushBuffer:()V
         1: .line 263
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.maybeFsync:()V
         2: .line 264
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.maybeSkipCache:()V
         3: .line 265
            return
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;
    Exceptions:
      throws java.io.IOException

  private void flushBuffer();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 269
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
            pop
         1: .line 271
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.remaining:()I
            ifle 3
         2: .line 273
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual org.apache.cassandra.hints.HintsWriter.writeBuffer:(Ljava/nio/ByteBuffer;)V
         3: .line 276
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.buffer:Ljava/nio/ByteBuffer;
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         4: .line 277
            return
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;
    Exceptions:
      throws java.io.IOException

  private void maybeFsync();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=8, locals=1, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 281
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.position:()J
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            getfield org.apache.cassandra.hints.HintsWriter.lastSyncPosition:J
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getTrickleFsyncIntervalInKb:()I
            i2l
            ldc 1024
            lmul
            ladd
            lcmp
            iflt 2
         1: .line 282
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            invokevirtual org.apache.cassandra.hints.HintsWriter.fsync:()V
         2: .line 283
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/apache/cassandra/hints/HintsWriter$Session;

  private void maybeSkipCache();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=9, locals=3, args_size=1
        start local 0 // org.apache.cassandra.hints.HintsWriter$Session this
         0: .line 287
            aload 0 /* this */
            invokevirtual org.apache.cassandra.hints.HintsWriter$Session.position:()J
            lstore 1 /* position */
        start local 1 // long position
         1: .line 291
            lload 1 /* position */
            invokestatic org.apache.cassandra.config.DatabaseDescriptor.getTrickleFsyncIntervalInKb:()I
            i2l
            ldc 1024
            lmul
            lcmp
            iflt 3
         2: .line 292
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            getfield org.apache.cassandra.hints.HintsWriter.fd:I
            lconst_0
            lload 1 /* position */
            lload 1 /* position */
            ldc 4096
            lrem
            lsub
            aload 0 /* this */
            getfield org.apache.cassandra.hints.HintsWriter$Session.this$0:Lorg/apache/cassandra/hints/HintsWriter;
            getfield org.apache.cassandra.hints.HintsWriter.file:Ljava/io/File;
            invokevirtual java.io.File.getPath:()Ljava/lang/String;
            invokestatic org.apache.cassandra.utils.NativeLibrary.trySkipCache:(IJJLjava/lang/String;)V
         3: .line 293
      StackMap locals: long
      StackMap stack:
            return
        end local 1 // long position
        end local 0 // org.apache.cassandra.hints.HintsWriter$Session this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Lorg/apache/cassandra/hints/HintsWriter$Session;
            1    4     1  position  J
}
SourceFile: "HintsWriter.java"
NestHost: org.apache.cassandra.hints.HintsWriter
InnerClasses:
  final Serializer = org.apache.cassandra.hints.Hint$Serializer of org.apache.cassandra.hints.Hint
  final Session = org.apache.cassandra.hints.HintsWriter$Session of org.apache.cassandra.hints.HintsWriter