public class org.h2.util.CacheTQ implements org.h2.util.Cache
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.h2.util.CacheTQ
  super_class: java.lang.Object
{
  static final java.lang.String TYPE_NAME;
    descriptor: Ljava/lang/String;
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: "TQ"

  private final org.h2.util.Cache lru;
    descriptor: Lorg/h2/util/Cache;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.h2.util.Cache fifo;
    descriptor: Lorg/h2/util/Cache;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final org.h2.util.SmallLRUCache<java.lang.Integer, java.lang.Object> recentlyUsed;
    descriptor: Lorg/h2/util/SmallLRUCache;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Lorg/h2/util/SmallLRUCache<Ljava/lang/Integer;Ljava/lang/Object;>;

  private int lastUsed;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private int maxMemory;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  void <init>(org.h2.util.CacheWriter, int);
    descriptor: (Lorg/h2/util/CacheWriter;I)V
    flags: (0x0000) 
    Code:
      stack=8, locals=3, args_size=3
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // org.h2.util.CacheWriter writer
        start local 2 // int maxMemoryKb
         0: .line 30
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 24
            aload 0 /* this */
         2: .line 25
            sipush 1024
            invokestatic org.h2.util.SmallLRUCache.newInstance:(I)Lorg/h2/util/SmallLRUCache;
            putfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
         3: .line 26
            aload 0 /* this */
            iconst_m1
            putfield org.h2.util.CacheTQ.lastUsed:I
         4: .line 31
            aload 0 /* this */
            iload 2 /* maxMemoryKb */
            putfield org.h2.util.CacheTQ.maxMemory:I
         5: .line 32
            aload 0 /* this */
            new org.h2.util.CacheLRU
            dup
            aload 1 /* writer */
            iload 2 /* maxMemoryKb */
            i2d
            ldc 0.8
            dmul
            d2i
            iconst_0
            invokespecial org.h2.util.CacheLRU.<init>:(Lorg/h2/util/CacheWriter;IZ)V
            putfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
         6: .line 33
            aload 0 /* this */
            new org.h2.util.CacheLRU
            dup
            aload 1 /* writer */
            iload 2 /* maxMemoryKb */
            i2d
            ldc 0.2
            dmul
            d2i
            iconst_1
            invokespecial org.h2.util.CacheLRU.<init>:(Lorg/h2/util/CacheWriter;IZ)V
            putfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
         7: .line 34
            aload 0 /* this */
            iconst_4
            iload 2 /* maxMemoryKb */
            imul
            invokevirtual org.h2.util.CacheTQ.setMaxMemory:(I)V
         8: .line 35
            return
        end local 2 // int maxMemoryKb
        end local 1 // org.h2.util.CacheWriter writer
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    9     0         this  Lorg/h2/util/CacheTQ;
            0    9     1       writer  Lorg/h2/util/CacheWriter;
            0    9     2  maxMemoryKb  I
    MethodParameters:
             Name  Flags
      writer       
      maxMemoryKb  

  public void clear();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.h2.util.CacheTQ this
         0: .line 39
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.clear:()V
         1: .line 40
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.clear:()V
         2: .line 41
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            invokevirtual org.h2.util.SmallLRUCache.clear:()V
         3: .line 42
            aload 0 /* this */
            iconst_m1
            putfield org.h2.util.CacheTQ.lastUsed:I
         4: .line 43
            return
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lorg/h2/util/CacheTQ;

  public org.h2.util.CacheObject find(int);
    descriptor: (I)Lorg/h2/util/CacheObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // int pos
         0: .line 47
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.find:(I)Lorg/h2/util/CacheObject;
            astore 2 /* r */
        start local 2 // org.h2.util.CacheObject r
         1: .line 48
            aload 2 /* r */
            ifnonnull 3
         2: .line 49
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.find:(I)Lorg/h2/util/CacheObject;
            astore 2 /* r */
         3: .line 51
      StackMap locals: org.h2.util.CacheObject
      StackMap stack:
            aload 2 /* r */
            areturn
        end local 2 // org.h2.util.CacheObject r
        end local 1 // int pos
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/h2/util/CacheTQ;
            0    4     1   pos  I
            1    4     2     r  Lorg/h2/util/CacheObject;
    MethodParameters:
      Name  Flags
      pos   

  public org.h2.util.CacheObject get(int);
    descriptor: (I)Lorg/h2/util/CacheObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // int pos
         0: .line 56
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.find:(I)Lorg/h2/util/CacheObject;
            astore 2 /* r */
        start local 2 // org.h2.util.CacheObject r
         1: .line 57
            aload 2 /* r */
            ifnull 3
         2: .line 58
            aload 2 /* r */
            areturn
         3: .line 60
      StackMap locals: org.h2.util.CacheObject
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.find:(I)Lorg/h2/util/CacheObject;
            astore 2 /* r */
         4: .line 61
            aload 2 /* r */
            ifnull 12
            aload 2 /* r */
            invokevirtual org.h2.util.CacheObject.isStream:()Z
            ifne 12
         5: .line 62
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            iload 1 /* pos */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual org.h2.util.SmallLRUCache.get:(Ljava/lang/Object;)Ljava/lang/Object;
            ifnull 10
         6: .line 63
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lastUsed:I
            iload 1 /* pos */
            if_icmpeq 11
         7: .line 64
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.remove:(I)Z
            pop
         8: .line 65
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            aload 2 /* r */
            invokeinterface org.h2.util.Cache.put:(Lorg/h2/util/CacheObject;)V
         9: .line 67
            goto 11
        10: .line 68
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            iload 1 /* pos */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 0 /* this */
            invokevirtual org.h2.util.SmallLRUCache.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        11: .line 70
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 1 /* pos */
            putfield org.h2.util.CacheTQ.lastUsed:I
        12: .line 72
      StackMap locals:
      StackMap stack:
            aload 2 /* r */
            areturn
        end local 2 // org.h2.util.CacheObject r
        end local 1 // int pos
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lorg/h2/util/CacheTQ;
            0   13     1   pos  I
            1   13     2     r  Lorg/h2/util/CacheObject;
    MethodParameters:
      Name  Flags
      pos   

  public java.util.ArrayList<org.h2.util.CacheObject> getAllChanged();
    descriptor: ()Ljava/util/ArrayList;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=1
        start local 0 // org.h2.util.CacheTQ this
         0: .line 77
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.getAllChanged:()Ljava/util/ArrayList;
            astore 1 /* lruChanged */
        start local 1 // java.util.ArrayList lruChanged
         1: .line 78
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.getAllChanged:()Ljava/util/ArrayList;
            astore 2 /* fifoChanged */
        start local 2 // java.util.ArrayList fifoChanged
         2: .line 79
            new java.util.ArrayList
            dup
            aload 1 /* lruChanged */
            invokevirtual java.util.ArrayList.size:()I
            aload 2 /* fifoChanged */
            invokevirtual java.util.ArrayList.size:()I
            iadd
            invokespecial java.util.ArrayList.<init>:(I)V
            astore 3 /* changed */
        start local 3 // java.util.ArrayList changed
         3: .line 80
            aload 3 /* changed */
            aload 1 /* lruChanged */
            invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
            pop
         4: .line 81
            aload 3 /* changed */
            aload 2 /* fifoChanged */
            invokevirtual java.util.ArrayList.addAll:(Ljava/util/Collection;)Z
            pop
         5: .line 82
            aload 3 /* changed */
            areturn
        end local 3 // java.util.ArrayList changed
        end local 2 // java.util.ArrayList fifoChanged
        end local 1 // java.util.ArrayList lruChanged
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0         this  Lorg/h2/util/CacheTQ;
            1    6     1   lruChanged  Ljava/util/ArrayList<Lorg/h2/util/CacheObject;>;
            2    6     2  fifoChanged  Ljava/util/ArrayList<Lorg/h2/util/CacheObject;>;
            3    6     3      changed  Ljava/util/ArrayList<Lorg/h2/util/CacheObject;>;
    Signature: ()Ljava/util/ArrayList<Lorg/h2/util/CacheObject;>;

  public int getMaxMemory();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.h2.util.CacheTQ this
         0: .line 87
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.maxMemory:I
            ireturn
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/util/CacheTQ;

  public int getMemory();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.h2.util.CacheTQ this
         0: .line 92
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.getMemory:()I
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            invokeinterface org.h2.util.Cache.getMemory:()I
            iadd
            ireturn
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/h2/util/CacheTQ;

  public void put(org.h2.util.CacheObject);
    descriptor: (Lorg/h2/util/CacheObject;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // org.h2.util.CacheObject r
         0: .line 97
            aload 1 /* r */
            invokevirtual org.h2.util.CacheObject.isStream:()Z
            ifeq 3
         1: .line 98
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            aload 1 /* r */
            invokeinterface org.h2.util.Cache.put:(Lorg/h2/util/CacheObject;)V
         2: .line 99
            goto 8
      StackMap locals:
      StackMap stack:
         3: aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            aload 1 /* r */
            invokevirtual org.h2.util.CacheObject.getPos:()I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual org.h2.util.SmallLRUCache.get:(Ljava/lang/Object;)Ljava/lang/Object;
            ifnull 6
         4: .line 100
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            aload 1 /* r */
            invokeinterface org.h2.util.Cache.put:(Lorg/h2/util/CacheObject;)V
         5: .line 101
            goto 8
         6: .line 102
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            aload 1 /* r */
            invokeinterface org.h2.util.Cache.put:(Lorg/h2/util/CacheObject;)V
         7: .line 103
            aload 0 /* this */
            aload 1 /* r */
            invokevirtual org.h2.util.CacheObject.getPos:()I
            putfield org.h2.util.CacheTQ.lastUsed:I
         8: .line 105
      StackMap locals:
      StackMap stack:
            return
        end local 1 // org.h2.util.CacheObject r
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lorg/h2/util/CacheTQ;
            0    9     1     r  Lorg/h2/util/CacheObject;
    MethodParameters:
      Name  Flags
      r     

  public boolean remove(int);
    descriptor: (I)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // int pos
         0: .line 109
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.remove:(I)Z
            istore 2 /* result */
        start local 2 // boolean result
         1: .line 110
            iload 2 /* result */
            ifne 3
         2: .line 111
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.remove:(I)Z
            istore 2 /* result */
         3: .line 113
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            iload 1 /* pos */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokevirtual org.h2.util.SmallLRUCache.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
         4: .line 114
            iload 2 /* result */
            ireturn
        end local 2 // boolean result
        end local 1 // int pos
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    5     0    this  Lorg/h2/util/CacheTQ;
            0    5     1     pos  I
            1    5     2  result  Z
    MethodParameters:
      Name  Flags
      pos   

  public void setMaxMemory(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // int maxMemoryKb
         0: .line 119
            aload 0 /* this */
            iload 1 /* maxMemoryKb */
            putfield org.h2.util.CacheTQ.maxMemory:I
         1: .line 120
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* maxMemoryKb */
            i2d
            ldc 0.8
            dmul
            d2i
            invokeinterface org.h2.util.Cache.setMaxMemory:(I)V
         2: .line 121
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* maxMemoryKb */
            i2d
            ldc 0.2
            dmul
            d2i
            invokeinterface org.h2.util.Cache.setMaxMemory:(I)V
         3: .line 122
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.recentlyUsed:Lorg/h2/util/SmallLRUCache;
            iconst_4
            iload 1 /* maxMemoryKb */
            imul
            invokevirtual org.h2.util.SmallLRUCache.setMaxSize:(I)V
         4: .line 123
            return
        end local 1 // int maxMemoryKb
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    5     0         this  Lorg/h2/util/CacheTQ;
            0    5     1  maxMemoryKb  I
    MethodParameters:
             Name  Flags
      maxMemoryKb  

  public org.h2.util.CacheObject update(int, org.h2.util.CacheObject);
    descriptor: (ILorg/h2/util/CacheObject;)Lorg/h2/util/CacheObject;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.h2.util.CacheTQ this
        start local 1 // int pos
        start local 2 // org.h2.util.CacheObject record
         0: .line 127
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* pos */
            invokeinterface org.h2.util.Cache.find:(I)Lorg/h2/util/CacheObject;
            ifnull 2
         1: .line 128
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.lru:Lorg/h2/util/Cache;
            iload 1 /* pos */
            aload 2 /* record */
            invokeinterface org.h2.util.Cache.update:(ILorg/h2/util/CacheObject;)Lorg/h2/util/CacheObject;
            areturn
         2: .line 130
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.h2.util.CacheTQ.fifo:Lorg/h2/util/Cache;
            iload 1 /* pos */
            aload 2 /* record */
            invokeinterface org.h2.util.Cache.update:(ILorg/h2/util/CacheObject;)Lorg/h2/util/CacheObject;
            areturn
        end local 2 // org.h2.util.CacheObject record
        end local 1 // int pos
        end local 0 // org.h2.util.CacheTQ this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Lorg/h2/util/CacheTQ;
            0    3     1     pos  I
            0    3     2  record  Lorg/h2/util/CacheObject;
    MethodParameters:
        Name  Flags
      pos     
      record  
}
SourceFile: "CacheTQ.java"