lucene::store::LuceneLockWith< T > Class Template Reference
#include <Lock.h>
List of all members.
template<typename T>
class lucene::store::LuceneLockWith< T >
Constructor & Destructor Documentation
Constructs an executor that will grab the named lock.
Defaults lockWaitTimeout to LUCENE_COMMIT_LOCK_TIMEOUT.
- Deprecated:
- Kept only to avoid breaking existing code.
Member Function Documentation
- See also:
- runAndReturn Same as runAndReturn, except doesn't return any value. The only difference is that no void values are used
Calls doBody while lock is obtained.
Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when doBody exits.
The documentation for this class was generated from the following file: