Class Engine.IndexThrottle

Enclosing class:

protected static final class Engine.IndexThrottle extends Object
A throttling class that can be activated, causing the acquireThrottle method to block on a lock when throttling is enabled
  • Constructor Details

    • IndexThrottle

      protected IndexThrottle()
  • Method Details

    • acquireThrottle

      public Releasable acquireThrottle()
    • activate

      public void activate()
      Activate throttling, which switches the lock to be a real lock
    • deactivate

      public void deactivate()
      Deactivate throttling, which switches the lock to be an always-acquirable NoOpLock