Class Engine.IndexThrottle

  • Enclosing class:
    Engine

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

      Constructors 
      Modifier Constructor Description
      protected IndexThrottle()  
    • Method Summary

      Modifier and Type Method Description
      Releasable acquireThrottle()  
      void activate()
      Activate throttling, which switches the lock to be a real lock
      void deactivate()
      Deactivate throttling, which switches the lock to be an always-acquirable NoOpLock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndexThrottle

        protected IndexThrottle()
    • Method Detail

      • 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