Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SingleInstanceLockFactory

    Implements LockFactory for a single in-process instance, meaning all locking will take place through this one instance. Only use this LockFactory when you are certain all IndexReaders and IndexWriters for a given index are running against a single shared in-process Directory instance. This is currently the default locking for RAMDirectory.

    Inheritance
    object
    LockFactory
    SingleInstanceLockFactory
    Inherited Members
    LockFactory.m_lockPrefix
    LockFactory.LockPrefix
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Store
    Assembly: Lucene.Net.dll
    Syntax
    public class SingleInstanceLockFactory : LockFactory

    Methods

    ClearLock(string)

    Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you are certain this lock is no longer in use.

    Declaration
    public override void ClearLock(string lockName)
    Parameters
    Type Name Description
    string lockName

    name of the lock to be cleared.

    Overrides
    LockFactory.ClearLock(string)
    See Also
    LockFactory

    MakeLock(string)

    Return a new Lock instance identified by lockName.

    Declaration
    public override Lock MakeLock(string lockName)
    Parameters
    Type Name Description
    string lockName

    name of the lock to be created.

    Returns
    Type Description
    Lock
    Overrides
    LockFactory.MakeLock(string)
    See Also
    LockFactory

    See Also

    LockFactory
    Back to top Copyright © 2024 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.