org.infinispan.lucene.locking
Class LuceneLockFactory

java.lang.Object
  extended by org.apache.lucene.store.LockFactory
      extended by 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

Field Summary
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
LuceneLockFactory(Cache<CacheKey,Object> cache, String indexName)
           
 
Method Summary
 void clearLock(String lockName)
          
 org.infinispan.lucene.locking.SharedLuceneLock makeLock(String lockName)
          
 
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
 

Constructor Detail

LuceneLockFactory

public LuceneLockFactory(Cache<CacheKey,Object> cache,
                         String indexName)
Method Detail

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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.