Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
NoLockFactory.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef NOLOCKFACTORY_H
8#define NOLOCKFACTORY_H
9
10#include "LockFactory.h"
11
12namespace Lucene {
13
18class LPPAPI NoLockFactory : public LockFactory {
19public:
20 virtual ~NoLockFactory();
21
23
24private:
25 static NoLockPtr getSingletonLock();
26
27public:
29
31 virtual LockPtr makeLock(const String& lockName);
32
35 virtual void clearLock(const String& lockName);
36};
37
38}
39
40#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Base class for Locking implementation. Directory uses instances of this class to implement locking....
Definition LockFactory.h:23
Use this LockFactory to disable locking entirely. Only one instance of this lock is created....
Definition NoLockFactory.h:18
virtual LockPtr makeLock(const String &lockName)
Return a new Lock instance identified by lockName.
static NoLockFactoryPtr getNoLockFactory()
virtual void clearLock(const String &lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you...
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< Lock > LockPtr
Definition LuceneTypes.h:496
boost::shared_ptr< NoLockFactory > NoLockFactoryPtr
Definition LuceneTypes.h:503
boost::shared_ptr< NoLock > NoLockPtr
Definition LuceneTypes.h:502

clucene.sourceforge.net