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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()Activate throttling, which switches the lock to be a real lockvoidDeactivate throttling, which switches the lock to be an always-acquirable NoOpLockvoidReverse what was done insuspendThrottle()voidSuspend throttling to allow another task such as relocation to acquire all indexing permits
-
Constructor Details
-
IndexThrottle
public IndexThrottle(boolean pause)
-
-
Method Details
-
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 -
suspendThrottle
public void suspendThrottle()Suspend throttling to allow another task such as relocation to acquire all indexing permits -
resumeThrottle
public void resumeThrottle()Reverse what was done insuspendThrottle()
-