org.infinispan.lucene.locking
Class LuceneLockFactory
java.lang.Object
org.apache.lucene.store.LockFactory
org.infinispan.lucene.locking.LuceneLockFactory
public class LuceneLockFactory
- extends org.apache.lucene.store.LockFactory
Factory for locks obtained in InfinispanDirectory
- Since:
- 4.0
- Author:
- Sanne Grinovero, Lukasz Moren
- See Also:
InfinispanDirectory
,
SharedLuceneLock
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 |
LuceneLockFactory
public LuceneLockFactory(Cache<CacheKey,Object> cache,
String indexName)
makeLock
public org.infinispan.lucene.locking.SharedLuceneLock 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.