org.compass.needle.gigaspaces.store
Class GigaSpaceLockFactory.GigaSpaceLock

java.lang.Object
  extended by org.apache.lucene.store.Lock
      extended by org.compass.needle.gigaspaces.store.GigaSpaceLockFactory.GigaSpaceLock
Enclosing class:
GigaSpaceLockFactory

public class GigaSpaceLockFactory.GigaSpaceLock
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
GigaSpaceLockFactory.GigaSpaceLock(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

GigaSpaceLockFactory.GigaSpaceLock

public GigaSpaceLockFactory.GigaSpaceLock(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.