public class org.apache.lucene.index.MergeRateLimiter extends org.apache.lucene.store.RateLimiter
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.lucene.index.MergeRateLimiter
  super_class: org.apache.lucene.store.RateLimiter
{
  private static final int MIN_PAUSE_CHECK_MSEC;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 25

  private static final long MIN_PAUSE_NS;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final long MAX_PAUSE_NS;
    descriptor: J
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private volatile double mbPerSec;
    descriptor: D
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

  private volatile long minPauseCheckBytes;
    descriptor: J
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

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

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

  private final org.apache.lucene.index.MergePolicy$OneMergeProgress mergeProgress;
    descriptor: Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 34
            ldc Lorg/apache/lucene/index/MergeRateLimiter;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic org.apache.lucene.index.MergeRateLimiter.$assertionsDisabled:Z
         3: .line 38
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            ldc 2
            invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
            putstatic org.apache.lucene.index.MergeRateLimiter.MIN_PAUSE_NS:J
         4: .line 39
            getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
            ldc 250
            invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
            putstatic org.apache.lucene.index.MergeRateLimiter.MAX_PAUSE_NS:J
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>(org.apache.lucene.index.MergePolicy$OneMergeProgress);
    descriptor: (Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
        start local 1 // org.apache.lucene.index.MergePolicy$OneMergeProgress mergeProgress
         0: .line 51
            aload 0 /* this */
            invokespecial org.apache.lucene.store.RateLimiter.<init>:()V
         1: .line 46
            aload 0 /* this */
            new java.util.concurrent.atomic.AtomicLong
            dup
            invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
            putfield org.apache.lucene.index.MergeRateLimiter.totalBytesWritten:Ljava/util/concurrent/atomic/AtomicLong;
         2: .line 53
            aload 0 /* this */
            aload 1 /* mergeProgress */
            putfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
         3: .line 54
            aload 0 /* this */
            ldc Infinity
            invokevirtual org.apache.lucene.index.MergeRateLimiter.setMBPerSec:(D)V
         4: .line 55
            return
        end local 1 // org.apache.lucene.index.MergePolicy$OneMergeProgress mergeProgress
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    5     0           this  Lorg/apache/lucene/index/MergeRateLimiter;
            0    5     1  mergeProgress  Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
    MethodParameters:
               Name  Flags
      mergeProgress  

  public void setMBPerSec(double);
    descriptor: (D)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=4, args_size=2
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
        start local 1 // double mbPerSec
         0: .line 60
            aload 0 /* this */
            dup
            astore 3
            monitorenter
         1: .line 62
            dload 1 /* mbPerSec */
            dconst_0
            dcmpg
            ifge 3
         2: .line 63
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "mbPerSec must be positive; got: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            dload 1 /* mbPerSec */
            invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 65
      StackMap locals: org.apache.lucene.index.MergeRateLimiter
      StackMap stack:
            aload 0 /* this */
            dload 1 /* mbPerSec */
            putfield org.apache.lucene.index.MergeRateLimiter.mbPerSec:D
         4: .line 68
            aload 0 /* this */
            ldc 1048576
            ldc 0.025
            dload 1 /* mbPerSec */
            dmul
            ldc 1024.0
            dmul
            ldc 1024.0
            dmul
            d2l
            invokestatic java.lang.Math.min:(JJ)J
            putfield org.apache.lucene.index.MergeRateLimiter.minPauseCheckBytes:J
         5: .line 69
            getstatic org.apache.lucene.index.MergeRateLimiter.$assertionsDisabled:Z
            ifne 6
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.minPauseCheckBytes:J
            lconst_0
            lcmp
            ifge 6
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         6: .line 60
      StackMap locals:
      StackMap stack:
            aload 3
            monitorexit
         7: goto 10
      StackMap locals:
      StackMap stack: java.lang.Throwable
         8: aload 3
            monitorexit
         9: athrow
        10: .line 72
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
            invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.wakeup:()V
        11: .line 73
            return
        end local 1 // double mbPerSec
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   12     0      this  Lorg/apache/lucene/index/MergeRateLimiter;
            0   12     1  mbPerSec  D
      Exception table:
        from    to  target  type
           1     7       8  any
           8     9       8  any
    MethodParameters:
          Name  Flags
      mbPerSec  

  public double getMBPerSec();
    descriptor: ()D
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 77
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mbPerSec:D
            dreturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/MergeRateLimiter;

  public long getTotalBytesWritten();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 82
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.totalBytesWritten:Ljava/util/concurrent/atomic/AtomicLong;
            invokevirtual java.util.concurrent.atomic.AtomicLong.get:()J
            lreturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/MergeRateLimiter;

  public long pause(long);
    descriptor: (J)J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=7, args_size=2
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
        start local 1 // long bytes
         0: .line 87
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.totalBytesWritten:Ljava/util/concurrent/atomic/AtomicLong;
            lload 1 /* bytes */
            invokevirtual java.util.concurrent.atomic.AtomicLong.addAndGet:(J)J
            pop2
         1: .line 91
            lconst_0
            lstore 3 /* paused */
        start local 3 // long paused
         2: .line 93
            goto 4
        start local 5 // long delta
         3: .line 95
      StackMap locals: long long
      StackMap stack:
            lload 3 /* paused */
            lload 5 /* delta */
            ladd
            lstore 3 /* paused */
        end local 5 // long delta
         4: .line 93
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            lload 1 /* bytes */
            invokestatic java.lang.System.nanoTime:()J
            invokevirtual org.apache.lucene.index.MergeRateLimiter.maybePause:(JJ)J
            dup2
            lstore 5 /* delta */
        start local 5 // long delta
         5: lconst_0
            lcmp
            ifge 3
         6: .line 98
            lload 3 /* paused */
            lreturn
        end local 5 // long delta
        end local 3 // long paused
        end local 1 // long bytes
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    7     0    this  Lorg/apache/lucene/index/MergeRateLimiter;
            0    7     1   bytes  J
            2    7     3  paused  J
            3    4     5   delta  J
            5    7     5   delta  J
    Exceptions:
      throws org.apache.lucene.index.MergePolicy$MergeAbortedException
    MethodParameters:
       Name  Flags
      bytes  

  public long getTotalStoppedNS();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 103
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
            invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.getPauseTimes:()Ljava/util/Map;
            getstatic org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason.STOPPED:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            lreturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/MergeRateLimiter;

  public long getTotalPausedNS();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 108
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
            invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.getPauseTimes:()Ljava/util/Map;
            getstatic org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason.PAUSED:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Long
            invokevirtual java.lang.Long.longValue:()J
            lreturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/MergeRateLimiter;

  private long maybePause(long, long);
    descriptor: (JJ)J
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=7, locals=16, args_size=3
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
        start local 1 // long bytes
        start local 3 // long curNS
         0: .line 118
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
            invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.isAborted:()Z
            ifeq 2
         1: .line 119
            new org.apache.lucene.index.MergePolicy$MergeAbortedException
            dup
            ldc "Merge aborted."
            invokespecial org.apache.lucene.index.MergePolicy$MergeAbortedException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 122
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mbPerSec:D
            dstore 5 /* rate */
        start local 5 // double rate
         3: .line 123
            lload 1 /* bytes */
            l2d
            ldc 1024.0
            ddiv
            ldc 1024.0
            ddiv
            dload 5 /* rate */
            ddiv
            dstore 7 /* secondsToPause */
        start local 7 // double secondsToPause
         4: .line 128
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.lastNS:J
            ldc 1.0E9
            dload 7 /* secondsToPause */
            dmul
            d2l
            ladd
            lstore 9 /* targetNS */
        start local 9 // long targetNS
         5: .line 130
            lload 9 /* targetNS */
            lload 3 /* curNS */
            lsub
            lstore 11 /* curPauseNS */
        start local 11 // long curPauseNS
         6: .line 133
            lload 11 /* curPauseNS */
            getstatic org.apache.lucene.index.MergeRateLimiter.MIN_PAUSE_NS:J
            lcmp
            ifgt 9
         7: .line 136
            aload 0 /* this */
            lload 3 /* curNS */
            putfield org.apache.lucene.index.MergeRateLimiter.lastNS:J
         8: .line 137
            ldc -1
            lreturn
         9: .line 142
      StackMap locals: org.apache.lucene.index.MergeRateLimiter long long double double long long
      StackMap stack:
            lload 11 /* curPauseNS */
            getstatic org.apache.lucene.index.MergeRateLimiter.MAX_PAUSE_NS:J
            lcmp
            ifle 11
        10: .line 143
            getstatic org.apache.lucene.index.MergeRateLimiter.MAX_PAUSE_NS:J
            lstore 11 /* curPauseNS */
        11: .line 146
      StackMap locals:
      StackMap stack:
            invokestatic java.lang.System.nanoTime:()J
            lstore 13 /* start */
        start local 13 // long start
        12: .line 148
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mergeProgress:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress;
        13: .line 149
            lload 11 /* curPauseNS */
        14: .line 150
            dload 5 /* rate */
            dconst_0
            dcmpl
            ifne 15
            getstatic org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason.STOPPED:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason;
            goto 16
      StackMap locals: org.apache.lucene.index.MergeRateLimiter long long double double long long long
      StackMap stack: org.apache.lucene.index.MergePolicy$OneMergeProgress long
        15: getstatic org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason.PAUSED:Lorg/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason;
        16: .line 151
      StackMap locals: org.apache.lucene.index.MergeRateLimiter long long double double long long long
      StackMap stack: org.apache.lucene.index.MergePolicy$OneMergeProgress long org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason
            aload 0 /* this */
            dload 5 /* rate */
            invokedynamic getAsBoolean(Lorg/apache/lucene/index/MergeRateLimiter;D)Ljava/util/function/BooleanSupplier;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()Z
                  org/apache/lucene/index/MergeRateLimiter.lambda$0(D)Z (7)
                  ()Z
        17: .line 148
            invokevirtual org.apache.lucene.index.MergePolicy$OneMergeProgress.pauseNanos:(JLorg/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason;Ljava/util/function/BooleanSupplier;)V
        18: .line 152
            goto 21
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
        19: astore 15 /* ie */
        start local 15 // java.lang.InterruptedException ie
        20: .line 153
            new org.apache.lucene.util.ThreadInterruptedException
            dup
            aload 15 /* ie */
            invokespecial org.apache.lucene.util.ThreadInterruptedException.<init>:(Ljava/lang/InterruptedException;)V
            athrow
        end local 15 // java.lang.InterruptedException ie
        21: .line 155
      StackMap locals:
      StackMap stack:
            invokestatic java.lang.System.nanoTime:()J
            lload 13 /* start */
            lsub
            lreturn
        end local 13 // long start
        end local 11 // long curPauseNS
        end local 9 // long targetNS
        end local 7 // double secondsToPause
        end local 5 // double rate
        end local 3 // long curNS
        end local 1 // long bytes
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   22     0            this  Lorg/apache/lucene/index/MergeRateLimiter;
            0   22     1           bytes  J
            0   22     3           curNS  J
            3   22     5            rate  D
            4   22     7  secondsToPause  D
            5   22     9        targetNS  J
            6   22    11      curPauseNS  J
           12   22    13           start  J
           20   21    15              ie  Ljava/lang/InterruptedException;
      Exception table:
        from    to  target  type
          12    18      19  Class java.lang.InterruptedException
    Exceptions:
      throws org.apache.lucene.index.MergePolicy$MergeAbortedException
    MethodParameters:
       Name  Flags
      bytes  
      curNS  

  public long getMinPauseCheckBytes();
    descriptor: ()J
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 160
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.minPauseCheckBytes:J
            lreturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/lucene/index/MergeRateLimiter;

  private boolean lambda$0(double);
    descriptor: (D)Z
    flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
    Code:
      stack=4, locals=3, args_size=2
        start local 0 // org.apache.lucene.index.MergeRateLimiter this
         0: .line 151
            dload 1
            aload 0 /* this */
            getfield org.apache.lucene.index.MergeRateLimiter.mbPerSec:D
            dcmpl
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: ireturn
        end local 0 // org.apache.lucene.index.MergeRateLimiter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/apache/lucene/index/MergeRateLimiter;
}
SourceFile: "MergeRateLimiter.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public MergeAbortedException = org.apache.lucene.index.MergePolicy$MergeAbortedException of org.apache.lucene.index.MergePolicy
  public OneMergeProgress = org.apache.lucene.index.MergePolicy$OneMergeProgress of org.apache.lucene.index.MergePolicy
  public final PauseReason = org.apache.lucene.index.MergePolicy$OneMergeProgress$PauseReason of org.apache.lucene.index.MergePolicy$OneMergeProgress