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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LockFactory.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 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 LOCKFACTORY_H
8 #define LOCKFACTORY_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene
13 {
23  class LPPAPI LockFactory : public LuceneObject
24  {
25  public:
26  virtual ~LockFactory();
27 
29 
30  protected:
31  String lockPrefix;
32 
33  public:
38  virtual void setLockPrefix(const String& lockPrefix);
39 
41  virtual String getLockPrefix();
42 
45  virtual LockPtr makeLock(const String& lockName) = 0;
46 
50  virtual void clearLock(const String& lockName) = 0;
51  };
52 }
53 
54 #endif

clucene.sourceforge.net