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.
Inheritance
System.Object
J2N.Threading.ThreadJob
TimeLimitingCollector.TimerThread
Implements
System.IEquatable<J2N.Threading.ThreadJob>
System.IEquatable<System.Threading.Thread>
Inherited Members
J2N.Threading.ThreadJob.SafeRun(System.Threading.ThreadStart)
J2N.Threading.ThreadJob.Start()
J2N.Threading.ThreadJob.Interrupt()
J2N.Threading.ThreadJob.Join()
J2N.Threading.ThreadJob.Join(System.Int64)
J2N.Threading.ThreadJob.Join(System.Int64, System.Int32)
J2N.Threading.ThreadJob.Resume()
J2N.Threading.ThreadJob.Abort()
J2N.Threading.ThreadJob.Abort(System.Object)
J2N.Threading.ThreadJob.Yield()
J2N.Threading.ThreadJob.Suspend()
J2N.Threading.ThreadJob.Sleep(System.Int64)
J2N.Threading.ThreadJob.Sleep(System.Int64, System.Int32)
J2N.Threading.ThreadJob.Sleep(System.TimeSpan)
J2N.Threading.ThreadJob.Interrupted()
J2N.Threading.ThreadJob.Equals(System.Threading.Thread)
J2N.Threading.ThreadJob.Equals(J2N.Threading.ThreadJob)
J2N.Threading.ThreadJob.Equals(System.Object)
J2N.Threading.ThreadJob.GetHashCode()
J2N.Threading.ThreadJob.ToString()
J2N.Threading.ThreadJob.SyncRoot
J2N.Threading.ThreadJob.Instance
J2N.Threading.ThreadJob.CurrentThread
J2N.Threading.ThreadJob.Name
J2N.Threading.ThreadJob.State
J2N.Threading.ThreadJob.Priority
J2N.Threading.ThreadJob.IsAlive
J2N.Threading.ThreadJob.IsBackground
J2N.Threading.ThreadJob.IsDebug
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public sealed class TimerThread : ThreadJob, IEquatable<ThreadJob>, IEquatable<Thread>
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 = 20
Field Value
Type | Description |
---|---|
System.Int32 |
THREAD_NAME
Declaration
public const string THREAD_NAME = "TimeLimitedCollector timer thread"
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()
Overrides
J2N.Threading.ThreadJob.Run()
|
Improve this Doc
View Source
StopTimer()
Stops the timer thread
Declaration
public void StopTimer()
Implements
System.IEquatable<T>
System.IEquatable<T>