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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 
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
boost::shared_ptr< NoLock > NoLockPtr
Definition: LuceneTypes.h:502
boost::shared_ptr< Lock > LockPtr
Definition: LuceneTypes.h:496
Base class for Locking implementation. Directory uses instances of this class to implement locking...
Definition: LockFactory.h:23
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
Definition: AbstractAllTermDocs.h:12
boost::shared_ptr< NoLockFactory > NoLockFactoryPtr
Definition: LuceneTypes.h:503
Use this LockFactory to disable locking entirely. Only one instance of this lock is created...
Definition: NoLockFactory.h:18

clucene.sourceforge.net