org.compass.needle.coherence
Class InvocableCoherenceLockFactory.CoherenceLock

java.lang.Object
  extended by org.apache.lucene.store.Lock
      extended by org.compass.needle.coherence.InvocableCoherenceLockFactory.CoherenceLock
Enclosing class:
InvocableCoherenceLockFactory

public class InvocableCoherenceLockFactory.CoherenceLock
extends Lock


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.store.Lock
Lock.With
 
Field Summary
 
Fields inherited from class org.apache.lucene.store.Lock
failureReason, LOCK_OBTAIN_WAIT_FOREVER, LOCK_POLL_INTERVAL
 
Constructor Summary
InvocableCoherenceLockFactory.CoherenceLock(String lockName)
           
 
Method Summary
 boolean isLocked()
           
 boolean obtain()
           
 void release()
           
 
Methods inherited from class org.apache.lucene.store.Lock
obtain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocableCoherenceLockFactory.CoherenceLock

public InvocableCoherenceLockFactory.CoherenceLock(String lockName)
Method Detail

isLocked

public boolean isLocked()
Specified by:
isLocked in class Lock

obtain

public boolean obtain()
               throws IOException
Specified by:
obtain in class Lock
Throws:
IOException

release

public void release()
Specified by:
release in class Lock


Copyright (c) 2004-2008 The Compass Project.