Package org.elasticsearch.index.engine
Class Engine.IndexThrottle
java.lang.Object
org.elasticsearch.index.engine.Engine.IndexThrottle
- Enclosing class:
- Engine
A throttling class that can be activated, causing the
 
acquireThrottle method to block on a lock when throttling
 is enabled- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.elasticsearch.core.Releasablevoidactivate()Activate throttling, which switches the lock to be a real lockvoidDeactivate throttling, which switches the lock to be an always-acquirable NoOpLock
- 
Constructor Details- 
IndexThrottleprotected IndexThrottle()
 
- 
- 
Method Details- 
acquireThrottlepublic org.elasticsearch.core.Releasable acquireThrottle()
- 
activatepublic void activate()Activate throttling, which switches the lock to be a real lock
- 
deactivatepublic void deactivate()Deactivate throttling, which switches the lock to be an always-acquirable NoOpLock
 
-