C# Class Lucene.Net.Store.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 whenever they want to read bytes or write bytes.
显示文件 Open project: paulirwin/lucene.net Class Usage Examples

Public Methods

Method Description
Pause ( long bytes ) : long

Pauses, if necessary, to keep the instantaneous IO rate at or below the target.

Note: the implementation is thread-safe

Method Details

Pause() public abstract method

Pauses, if necessary, to keep the instantaneous IO rate at or below the target.

Note: the implementation is thread-safe

public abstract Pause ( long bytes ) : long
bytes long
return long