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
    TimeLimitingCollector.TimerThread
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class TimerThread : ThreadJob

    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 = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    THREAD_NAME

    Declaration
    public const string THREAD_NAME = null
    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()
    | Improve this Doc View Source

    StopTimer()

    Stops the timer thread

    Declaration
    public void StopTimer()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)