org.apache.lucene.store.db
public class DbLock extends Lock
Lock is
trivial as DbDirectory operations are managed by the Berkeley DB
locking system.failureReason, LOCK_OBTAIN_WAIT_FOREVER, LOCK_POLL_INTERVAL| Constructor and Description |
|---|
DbLock() |
public boolean obtain()
Lockpublic void release()
Lockpublic boolean isLocked()
LockLock.obtain() before using the resource.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.