org.infinispan.lucene.locking
Class BaseLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
org.infinispan.lucene.locking.BaseLockFactory
public class BaseLockFactory
- extends org.apache.lucene.store.LockFactory
Default factory for locks obtained in InfinispanDirectory
,
this factory produces instances of BaseLuceneLock
.
- Since:
- 4.0
- Author:
- Sanne Grinovero
- See Also:
InfinispanDirectory
,
BaseLuceneLock
Fields inherited from class org.apache.lucene.store.LockFactory |
lockPrefix |
Methods inherited from class org.apache.lucene.store.LockFactory |
getLockPrefix, setLockPrefix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseLockFactory
public BaseLockFactory(Cache cache,
String indexName)
makeLock
public org.infinispan.lucene.locking.BaseLuceneLock makeLock(String lockName)
-
- Specified by:
makeLock
in class org.apache.lucene.store.LockFactory
clearLock
public void clearLock(String lockName)
throws IOException
-
- Specified by:
clearLock
in class org.apache.lucene.store.LockFactory
- Throws:
IOException
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.