Class SqlJetFileLock
java.lang.Object
java.nio.channels.FileLock
org.tmatesoft.sqljet.core.internal.fs.SqlJetFileLock
- All Implemented Interfaces:
java.lang.AutoCloseable
public class SqlJetFileLock
extends java.nio.channels.FileLock
- Author:
- TMate Software Ltd., Sergey Scherbina (sergey.scherbina@gmail.com)
-
Constructor Summary
ConstructorsConstructorDescriptionSqlJetFileLock
(SqlJetFileLockManager manager, java.nio.channels.FileLock fileLock) -
Method Summary
Methods inherited from class java.nio.channels.FileLock
acquiredBy, channel, close, isShared, overlaps, position, size, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
SqlJetFileLock
- Parameters:
channel
-position
-size
-shared
-
-
-
Method Details
-
isValid
public boolean isValid()- Specified by:
isValid
in classjava.nio.channels.FileLock
-
release
public void release() throws java.io.IOException- Specified by:
release
in classjava.nio.channels.FileLock
- Throws:
java.io.IOException
-
addLock
public void addLock()
-