Class RateLimiter
Abstract base class to rate limit IO. Typically implementations are shared across multiple IndexInputs or IndexOutputs (for example those involved all merging). Those IndexInputs and IndexOutputs would call Pause(Int64) whenever they want to read bytes or write bytes.
Inheritance
System.Object
RateLimiter
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class RateLimiter : object
Properties
Name | Description |
---|---|
MbPerSec | The current mb per second rate limit. |
Methods
Name | Description |
---|---|
Pause(Int64) | Pauses, if necessary, to keep the instantaneous IO rate at or below the target. Note: the implementation is thread-safe |
SetMbPerSec(Double) | Sets an updated mb per second rate limit. |