org.infinispan.lucene.locking
Class BaseLockFactory

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

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

BaseLockFactory

public BaseLockFactory(Cache cache,
                       String indexName)
Method Detail

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

Google Analytics

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