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

NoLockFactory.h
Go to the documentation of this file.
1 // 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
12 namespace Lucene {
13
18 class LPPAPI NoLockFactory : public LockFactory {
19 public:
20 virtual ~NoLockFactory();
21
22 LUCENE_CLASS(NoLockFactory);
23
24 private:
25 static NoLockPtr getSingletonLock();
26
27 public:
28 static NoLockFactoryPtr getNoLockFactory();
29
31 virtual LockPtr makeLock(const String& lockName);
32
35 virtual void clearLock(const String& lockName);
36 };
37
38 }
39
40 #endif
Lucene::NoLockPtr
boost::shared_ptr< NoLock > NoLockPtr
Definition: LuceneTypes.h:502
Lucene::LockPtr
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
Lucene::LockFactory
Base class for Locking implementation. Directory uses instances of this class to implement locking...
Definition: LockFactory.h:23
LockFactory.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Lucene
Definition: AbstractAllTermDocs.h:12
Lucene::NoLockFactoryPtr
boost::shared_ptr< NoLockFactory > NoLockFactoryPtr
Definition: LuceneTypes.h:503
Lucene::NoLockFactory
Use this LockFactory to disable locking entirely. Only one instance of this lock is created...
Definition: NoLockFactory.h:18

clucene.sourceforge.net