Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
SingleInstanceLockFactory.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 SINGLEINSTANCELOCKFACTORY_H
8
#define SINGLEINSTANCELOCKFACTORY_H
9
10
#include "
LockFactory.h
"
11
12
namespace
Lucene
{
13
20
class
LPPAPI
SingleInstanceLockFactory
:
public
LockFactory
{
21
public
:
22
SingleInstanceLockFactory
();
23
virtual
~SingleInstanceLockFactory
();
24
25
LUCENE_CLASS
(
SingleInstanceLockFactory
);
26
27
protected
:
28
HashSet<String>
locks
;
29
30
public
:
33
virtual
LockPtr
makeLock
(
const
String& lockName);
34
39
virtual
void
clearLock
(
const
String& lockName);
40
};
41
42
}
43
44
#endif
LockFactory.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::HashSet
Utility template class to handle hash set collections that can be safely copied and shared.
Definition
HashSet.h:17
Lucene::LockFactory
Base class for Locking implementation. Directory uses instances of this class to implement locking....
Definition
LockFactory.h:23
Lucene::SingleInstanceLockFactory::SingleInstanceLockFactory
SingleInstanceLockFactory()
Lucene::SingleInstanceLockFactory::~SingleInstanceLockFactory
virtual ~SingleInstanceLockFactory()
Lucene::SingleInstanceLockFactory::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::SingleInstanceLockFactory::makeLock
virtual LockPtr makeLock(const String &lockName)
Return a new Lock instance identified by lockName.
Lucene::SingleInstanceLockFactory::locks
HashSet< String > locks
Definition
SingleInstanceLockFactory.h:28
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::LockPtr
boost::shared_ptr< Lock > LockPtr
Definition
LuceneTypes.h:496
clucene.sourceforge.net