- Indentation cleanup.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150098 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2003-10-13 14:29:47 +00:00
parent b84e20281e
commit 6600da8d84
1 changed files with 30 additions and 29 deletions

View File

@ -68,19 +68,20 @@ import java.io.IOException;
* </pre>
*
* @author Doug Cutting
* @version $Id$
* @see Directory#makeLock(String)
*/
*/
public abstract class Lock {
public static long LOCK_POLL_INTERVAL = 1000;
/** Attempt to obtain exclusive access and immediately return
/** Attempts to obtain exclusive access and immediately return
* upon success or failure.
* @return true iff exclusive access is obtained
*/
public abstract boolean obtain() throws IOException;
/** Attempt to obtain an exclusive lock within amount
/** Attempts to obtain an exclusive lock within amount
* of time given. Currently polls once per second until
* lockWaitTimeout is passed.
* @param lockWaitTimeout length of time to wait in ms
@ -105,7 +106,7 @@ public abstract class Lock {
return locked;
}
/** Release exclusive access. */
/** Releases exclusive access. */
public abstract void release();
/** Returns true if the resource is currently locked. Note that one must