protected static final class Engine.IndexThrottle
extends java.lang.Object
acquireThrottle method to block on a lock when throttling
is enabled| Modifier | Constructor | Description |
|---|---|---|
protected |
IndexThrottle() |
| 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
|
public Releasable acquireThrottle()
public void activate()
public void deactivate()