org.compass.needle.coherence
Class DefaultCoherenceLockFactory

java.lang.Object
  extended by org.apache.lucene.store.LockFactory
      extended by org.compass.needle.coherence.DefaultCoherenceLockFactory

public class DefaultCoherenceLockFactory
extends LockFactory

A locak factory using.

Author:
kimchy

Nested Class Summary
 class DefaultCoherenceLockFactory.CoherenceLock
           
 
Field Summary
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
DefaultCoherenceLockFactory(com.tangosol.net.NamedCache cache, String indexName)
           
 
Method Summary
 void clearLock(String lockName)
           
 Lock 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

DefaultCoherenceLockFactory

public DefaultCoherenceLockFactory(com.tangosol.net.NamedCache cache,
                                   String indexName)
Method Detail

clearLock

public void clearLock(String lockName)
               throws IOException
Specified by:
clearLock in class LockFactory
Throws:
IOException

makeLock

public Lock makeLock(String lockName)
Specified by:
makeLock in class LockFactory


Copyright (c) 2004-2009 The Compass Project.