Class RateLimitedIndexOutput

All Implemented Interfaces:
Closeable, AutoCloseable

public final class RateLimitedIndexOutput extends IndexOutput
  • Field Details

    • delegate

      private final IndexOutput delegate
    • rateLimiter

      private final RateLimiter rateLimiter
    • bytesSinceLastPause

      private long bytesSinceLastPause
      How many bytes we've written since we last called rateLimiter.pause.
    • currentMinPauseCheckBytes

      private long currentMinPauseCheckBytes
      Cached here not not always have to call RateLimiter#getMinPauseCheckBytes() which does volatile read.
  • Constructor Details

  • Method Details