Class 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)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLock()  
      boolean isValid()  
      void release()  
      • 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 Detail

      • SqlJetFileLock

        public SqlJetFileLock​(SqlJetFileLockManager manager,
                              java.nio.channels.FileLock fileLock)
        Parameters:
        channel -
        position -
        size -
        shared -
    • Method Detail

      • isValid

        public boolean isValid()
        Specified by:
        isValid in class java.nio.channels.FileLock
      • release

        public void release()
                     throws java.io.IOException
        Specified by:
        release in class java.nio.channels.FileLock
        Throws:
        java.io.IOException
      • addLock

        public void addLock()