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
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
LockFactory.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Lucene::LockFactory
Base class for Locking implementation. Directory uses instances of this class to implement locking....
Definition LockFactory.h:23
Lucene::NoLockFactory
Use this LockFactory to disable locking entirely. Only one instance of this lock is created....
Definition NoLockFactory.h:18
Lucene::NoLockFactory::makeLock
virtual LockPtr makeLock(const String &lockName)
Return a new Lock instance identified by lockName.
Lucene::NoLockFactory::getNoLockFactory
static NoLockFactoryPtr getNoLockFactory()
Lucene::NoLockFactory::clearLock
virtual void clearLock(const String &lockName)
Attempt to clear (forcefully unlock and remove) the specified lock. Only call this at a time when you...
Lucene::NoLockFactory::~NoLockFactory
virtual ~NoLockFactory()
Lucene
Definition AbstractAllTermDocs.h:12
Lucene::NoLockPtr
boost::shared_ptr< NoLock > NoLockPtr
Definition LuceneTypes.h:502
Lucene::NoLockFactoryPtr
boost::shared_ptr< NoLockFactory > NoLockFactoryPtr
Definition LuceneTypes.h:503
Lucene::LockPtr
boost::shared_ptr< Lock > LockPtr
Definition LuceneTypes.h:496

clucene.sourceforge.net