Class TimeLimitingCollector.TimerThread
Thread used to timeout search requests. Can be stopped completely with StopTimer()
This is a Lucene.NET EXPERIMENTAL API, use at your own risk
Inheritance
System.Object
TimeLimitingCollector.TimerThread
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class TimerThread : ThreadJob
Constructors
| Improve this Doc View SourceTimerThread(Counter)
Declaration
public TimerThread(Counter counter)
Parameters
Type | Name | Description |
---|---|---|
Counter | counter |
TimerThread(Int64, Counter)
Declaration
public TimerThread(long resolution, Counter counter)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | resolution | |
Counter | counter |
Fields
| Improve this Doc View SourceDEFAULT_RESOLUTION
Declaration
public const int DEFAULT_RESOLUTION = null
Field Value
Type | Description |
---|---|
System.Int32 |
THREAD_NAME
Declaration
public const string THREAD_NAME = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceMilliseconds
Get the timer value in milliseconds.
Declaration
public long Milliseconds { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Resolution
Return the timer resolution.
Declaration
public long Resolution { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
| Improve this Doc View SourceRun()
Declaration
public override void Run()
StopTimer()
Stops the timer thread
Declaration
public void StopTimer()