org.compass.needle.coherence
Class InvocableCoherenceLockFactory

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

public class InvocableCoherenceLockFactory
extends LockFactory

A lock factory using Coherence invocable support in order to use the actual existance of a key within the cache to represent a lock.

Author:
kimchy

Nested Class Summary
 class InvocableCoherenceLockFactory.CoherenceLock
           
 
Field Summary
 
Fields inherited from class org.apache.lucene.store.LockFactory
lockPrefix
 
Constructor Summary
InvocableCoherenceLockFactory(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

InvocableCoherenceLockFactory

public InvocableCoherenceLockFactory(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.