Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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
    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 Source

    TimerThread(Counter)

    Declaration
    public TimerThread(Counter counter)
    Parameters
    Type Name Description
    Counter counter
    | Improve this Doc View Source

    TimerThread(Int64, Counter)

    Declaration
    public TimerThread(long resolution, Counter counter)
    Parameters
    Type Name Description
    System.Int64 resolution
    Counter counter

    Fields

    | Improve this Doc View Source

    DEFAULT_RESOLUTION

    Declaration
    public const int DEFAULT_RESOLUTION = 20
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    THREAD_NAME

    Declaration
    public const string THREAD_NAME = "TimeLimitedCollector timer thread"
    Field Value
    Type Description
    System.String

    Properties

    | Improve this Doc View Source

    Milliseconds

    Get the timer value in milliseconds.

    Declaration
    public long Milliseconds { get; }
    Property Value
    Type Description
    System.Int64
    | Improve this Doc View Source

    Resolution

    Return the timer resolution.

    Declaration
    public long Resolution { get; set; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    Run()

    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>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.