Create a TimeLimitedCollector wrapper over another {@link Collector} with a specified timeout.
Namespace: Lucene.Net.SearchAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public TimeLimitingCollector( Collector collector, long timeAllowed ) |
Visual Basic |
---|
Public Sub New ( _ collector As Collector, _ timeAllowed As Long _ ) |
Visual C++ |
---|
public: TimeLimitingCollector( Collector^ collector, long long timeAllowed ) |
Parameters
- collector
- Type: Lucene.Net.Search..::..Collector
the wrapped {@link Collector}
- timeAllowed
- Type: System..::..Int64
max time allowed for collecting hits after which {@link TimeExceededException} is thrown