public class org.apache.cassandra.db.commitlog.SimpleCachedBufferPool
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.cassandra.db.commitlog.SimpleCachedBufferPool
  super_class: java.lang.Object
{
  protected static final io.netty.util.concurrent.FastThreadLocal<java.nio.ByteBuffer> reusableBufferHolder;
    descriptor: Lio/netty/util/concurrent/FastThreadLocal;
    flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
    Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/nio/ByteBuffer;>;

  private java.util.Queue<java.nio.ByteBuffer> bufferPool;
    descriptor: Ljava/util/Queue;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/Queue<Ljava/nio/ByteBuffer;>;

  private java.util.concurrent.atomic.AtomicInteger usedBuffers;
    descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
    flags: (0x0002) ACC_PRIVATE

  private final int maxBufferPoolSize;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final int bufferSize;
    descriptor: I
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private org.apache.cassandra.io.compress.BufferType preferredReusableBufferType;
    descriptor: Lorg/apache/cassandra/io/compress/BufferType;
    flags: (0x0002) ACC_PRIVATE

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 38
            new org.apache.cassandra.db.commitlog.SimpleCachedBufferPool$1
            dup
            invokespecial org.apache.cassandra.db.commitlog.SimpleCachedBufferPool$1.<init>:()V
            putstatic org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.reusableBufferHolder:Lio/netty/util/concurrent/FastThreadLocal;
         1: .line 44
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(int, int);
    descriptor: (II)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
        start local 1 // int maxBufferPoolSize
        start local 2 // int bufferSize
         0: .line 62
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 46
            aload 0 /* this */
            new java.util.concurrent.ConcurrentLinkedQueue
            dup
            invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferPool:Ljava/util/Queue;
         2: .line 47
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicInteger
            dup
            iconst_0
            invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.usedBuffers:Ljava/util/concurrent/atomic/AtomicInteger;
         3: .line 60
            aload 0 /* this */
            getstatic org.apache.cassandra.io.compress.BufferType.ON_HEAP:Lorg/apache/cassandra/io/compress/BufferType;
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.preferredReusableBufferType:Lorg/apache/cassandra/io/compress/BufferType;
         4: .line 64
            aload 0 /* this */
            iload 1 /* maxBufferPoolSize */
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.maxBufferPoolSize:I
         5: .line 65
            aload 0 /* this */
            iload 2 /* bufferSize */
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferSize:I
         6: .line 66
            return
        end local 2 // int bufferSize
        end local 1 // int maxBufferPoolSize
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    7     0               this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            0    7     1  maxBufferPoolSize  I
            0    7     2         bufferSize  I
    MethodParameters:
                   Name  Flags
      maxBufferPoolSize  
      bufferSize         

  public java.nio.ByteBuffer createBuffer(org.apache.cassandra.io.compress.BufferType);
    descriptor: (Lorg/apache/cassandra/io/compress/BufferType;)Ljava/nio/ByteBuffer;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
        start local 1 // org.apache.cassandra.io.compress.BufferType bufferType
         0: .line 70
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.usedBuffers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
            pop
         1: .line 71
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferPool:Ljava/util/Queue;
            invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
            checkcast java.nio.ByteBuffer
            astore 2 /* buf */
        start local 2 // java.nio.ByteBuffer buf
         2: .line 72
            aload 2 /* buf */
            ifnull 5
         3: .line 74
            aload 2 /* buf */
            invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
            pop
         4: .line 75
            aload 2 /* buf */
            areturn
         5: .line 77
      StackMap locals: java.nio.ByteBuffer
      StackMap stack:
            aload 1 /* bufferType */
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferSize:I
            invokevirtual org.apache.cassandra.io.compress.BufferType.allocate:(I)Ljava/nio/ByteBuffer;
            areturn
        end local 2 // java.nio.ByteBuffer buf
        end local 1 // org.apache.cassandra.io.compress.BufferType bufferType
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    6     0        this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            0    6     1  bufferType  Lorg/apache/cassandra/io/compress/BufferType;
            2    6     2         buf  Ljava/nio/ByteBuffer;
    MethodParameters:
            Name  Flags
      bufferType  

  public java.nio.ByteBuffer getThreadLocalReusableBuffer(int);
    descriptor: (I)Ljava/nio/ByteBuffer;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
        start local 1 // int size
         0: .line 82
            getstatic org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.reusableBufferHolder:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast java.nio.ByteBuffer
            astore 2 /* result */
        start local 2 // java.nio.ByteBuffer result
         1: .line 83
            aload 2 /* result */
            invokevirtual java.nio.ByteBuffer.capacity:()I
            iload 1 /* size */
            if_icmplt 2
            aload 2 /* result */
            invokestatic org.apache.cassandra.io.compress.BufferType.typeOf:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/io/compress/BufferType;
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.preferredReusableBufferType:Lorg/apache/cassandra/io/compress/BufferType;
            if_acmpeq 5
         2: .line 85
      StackMap locals: java.nio.ByteBuffer
      StackMap stack:
            aload 2 /* result */
            invokestatic org.apache.cassandra.io.util.FileUtils.clean:(Ljava/nio/ByteBuffer;)V
         3: .line 86
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.preferredReusableBufferType:Lorg/apache/cassandra/io/compress/BufferType;
            iload 1 /* size */
            invokevirtual org.apache.cassandra.io.compress.BufferType.allocate:(I)Ljava/nio/ByteBuffer;
            astore 2 /* result */
         4: .line 87
            getstatic org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.reusableBufferHolder:Lio/netty/util/concurrent/FastThreadLocal;
            aload 2 /* result */
            invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
         5: .line 89
      StackMap locals:
      StackMap stack:
            aload 2 /* result */
            areturn
        end local 2 // java.nio.ByteBuffer result
        end local 1 // int size
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    6     0    this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            0    6     1    size  I
            1    6     2  result  Ljava/nio/ByteBuffer;
    MethodParameters:
      Name  Flags
      size  

  public void setPreferredReusableBufferType(org.apache.cassandra.io.compress.BufferType);
    descriptor: (Lorg/apache/cassandra/io/compress/BufferType;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
        start local 1 // org.apache.cassandra.io.compress.BufferType type
         0: .line 94
            aload 0 /* this */
            aload 1 /* type */
            putfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.preferredReusableBufferType:Lorg/apache/cassandra/io/compress/BufferType;
         1: .line 95
            return
        end local 1 // org.apache.cassandra.io.compress.BufferType type
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            0    2     1  type  Lorg/apache/cassandra/io/compress/BufferType;
    MethodParameters:
      Name  Flags
      type  

  public void releaseBuffer(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
        start local 1 // java.nio.ByteBuffer buffer
         0: .line 99
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.usedBuffers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
            pop
         1: .line 101
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferPool:Ljava/util/Queue;
            invokeinterface java.util.Queue.size:()I
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.maxBufferPoolSize:I
            if_icmpge 3
         2: .line 102
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferPool:Ljava/util/Queue;
            aload 1 /* buffer */
            invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
            pop
            goto 4
         3: .line 104
      StackMap locals:
      StackMap stack:
            aload 1 /* buffer */
            invokestatic org.apache.cassandra.io.util.FileUtils.clean:(Ljava/nio/ByteBuffer;)V
         4: .line 105
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.nio.ByteBuffer buffer
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    5     0    this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
            0    5     1  buffer  Ljava/nio/ByteBuffer;
    MethodParameters:
        Name  Flags
      buffer  

  public void shutdown();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
         0: .line 109
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferPool:Ljava/util/Queue;
            invokeinterface java.util.Queue.clear:()V
         1: .line 110
            return
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;

  public boolean atLimit();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
         0: .line 114
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.usedBuffers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.maxBufferPoolSize:I
            if_icmplt 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;

  public java.lang.String toString();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
         0: .line 120
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
         1: .line 121
            ldc "SimpleBufferPool:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
         2: .line 122
            ldc " bufferCount:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.usedBuffers:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         3: .line 123
            ldc ", bufferSize:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.maxBufferPoolSize:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         4: .line 124
            ldc ", buffer size:"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 0 /* this */
            getfield org.apache.cassandra.db.commitlog.SimpleCachedBufferPool.bufferSize:I
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
         5: .line 125
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         6: .line 120
            areturn
        end local 0 // org.apache.cassandra.db.commitlog.SimpleCachedBufferPool this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lorg/apache/cassandra/db/commitlog/SimpleCachedBufferPool;
}
SourceFile: "SimpleCachedBufferPool.java"
NestMembers:
  org.apache.cassandra.db.commitlog.SimpleCachedBufferPool$1
InnerClasses:
  org.apache.cassandra.db.commitlog.SimpleCachedBufferPool$1