Class TimeLimitingCollector.TimerThread
Thread used to timeout search requests. Can be stopped completely with StopTimer()
Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class TimeLimitingCollector.TimerThread : ThreadJob, IEquatable<ThreadJob>, IEquatable<Thread>
Constructors
TimerThread(Counter)
Thread used to timeout search requests. Can be stopped completely with StopTimer()
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public TimerThread(Counter counter)
Parameters
Type | Name | Description |
---|---|---|
Counter | counter |
TimerThread(long, Counter)
Thread used to timeout search requests. Can be stopped completely with StopTimer()
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public TimerThread(long resolution, Counter counter)
Parameters
Type | Name | Description |
---|---|---|
long | resolution | |
Counter | counter |
Fields
DEFAULT_RESOLUTION
Thread used to timeout search requests. Can be stopped completely with StopTimer()
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public const int DEFAULT_RESOLUTION = 20
Field Value
Type | Description |
---|---|
int |
THREAD_NAME
Thread used to timeout search requests. Can be stopped completely with StopTimer()
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public const string THREAD_NAME = "TimeLimitedCollector timer thread"
Field Value
Type | Description |
---|---|
string |
Properties
Milliseconds
Get the timer value in milliseconds.
Declaration
public long Milliseconds { get; }
Property Value
Type | Description |
---|---|
long |
Resolution
Return the timer resolution.
Declaration
public long Resolution { get; set; }
Property Value
Type | Description |
---|---|
long |
Methods
Run()
Invokes the ThreadStart delegate that was passed into the constructor. If no ThreadStart was set, does nothing. Alternatively, this method may be overridden by subclasses to provide an implementation for the thread to run.
Declaration
public override void Run()
Overrides
StopTimer()
Stops the timer thread
Declaration
public void StopTimer()