Class FDBDirectoryLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
com.apple.foundationdb.record.lucene.directory.FDBDirectoryLockFactory
public final class FDBDirectoryLockFactory
extends org.apache.lucene.store.LockFactory
Produce a lock over
FDBDirectory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic classAn exception class thrown when obtaining the lock failed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.LockobtainLock(AgilityContext agilityContext, byte[] fileLockKey, String lockName) org.apache.lucene.store.LockobtainLock(org.apache.lucene.store.Directory dir, String lockName)
-
Constructor Details
-
FDBDirectoryLockFactory
-
-
Method Details
-
obtainLock
public org.apache.lucene.store.Lock obtainLock(org.apache.lucene.store.Directory dir, String lockName) throws IOException - Specified by:
obtainLockin classorg.apache.lucene.store.LockFactory- Throws:
IOException
-
obtainLock
public org.apache.lucene.store.Lock obtainLock(AgilityContext agilityContext, byte[] fileLockKey, String lockName)
-