| |
|
| java.lang.Object org.hsqldb.persist.LockFile org.hsqldb.persist.NIOLockFile
NIOLockFile | final class NIOLockFile extends LockFile (Code) | | A LockFile variant that capitalizes upon the
availability of
java.nio.channels.FileLock FileLock .
author: boucherb@users version: 1.7.2 since: 1.7.2 |
Method Summary | |
public boolean | isValid() Retrieves whether this object's
NIOLockFile.fl FileLock attribute represents
a valid lock upon this object's lock file. | protected boolean | lockImpl() Tries to obtain a valid NIO lock upon this object's lock file using
this object's
NIOLockFile.fl FileLock attribute. | protected boolean | releaseImpl() Tries to release any valid lock held upon this object's lock file using
this object's
NIOLockFile.fl FileLock attribute. | protected String | toStringImpl() |
MAX_NFS_LOCK_REGION | final static long MAX_NFS_LOCK_REGION(Code) | | |
MIN_LOCK_REGION | final static long MIN_LOCK_REGION(Code) | | |
isValid | public boolean isValid()(Code) | | Retrieves whether this object's
NIOLockFile.fl FileLock attribute represents
a valid lock upon this object's lock file.
true if this object's NIOLockFile.fl FileLock attribute is valid,else false |
lockImpl | protected boolean lockImpl() throws Exception(Code) | | Tries to obtain a valid NIO lock upon this object's lock file using
this object's
NIOLockFile.fl FileLock attribute.
true if a valid lock is obtained, else false. throws: Exception - if an error occurs while attempting to obtain the lock |
releaseImpl | protected boolean releaseImpl() throws Exception(Code) | | Tries to release any valid lock held upon this object's lock file using
this object's
NIOLockFile.fl FileLock attribute.
true if a valid lock is released, else false throws: Exception - if na error occurs while attempting to release the lock |
toStringImpl | protected String toStringImpl()(Code) | | Retrieves the String value: "fl =" + fl
the String value: "fl =" + fl |
|
|
|