Package org.elasticsearch.index.engine
Class Engine.IndexThrottle
- java.lang.Object
-
- org.elasticsearch.index.engine.Engine.IndexThrottle
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIndexThrottle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReleasableacquireThrottle()voidactivate()Activate throttling, which switches the lock to be a real lockvoiddeactivate()Deactivate throttling, which switches the lock to be an always-acquirable NoOpLock
-
-
-
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
-
-