Class NoLockFactory
Use this LockFactory to disable locking entirely. Only one instance of this lock is created. You should call GetNoLockFactory() to get the instance.
Inherited Members
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.dll
Syntax
public class NoLockFactory : 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
See Also
GetNoLockFactory()
Use this LockFactory to disable locking entirely. Only one instance of this lock is created. You should call GetNoLockFactory() to get the instance.
Declaration
public static NoLockFactory GetNoLockFactory()
Returns
Type | Description |
---|---|
NoLockFactory |
See Also
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 |