Class FileLockerImpl

    • Constructor Detail

      • FileLockerImpl

        public FileLockerImpl​(File file,
                              org.eclipse.osgi.service.datalocation.Location anyLocation)
    • Method Detail

      • lock

        public void lock​(long timeout)
        Description copied from interface: FileLocker
        Attempt to lock the file associated with this locker object. Note that technically, not the file itself is locked, but an empty marker file next to it.
        Specified by:
        lock in interface FileLocker
        Parameters:
        timeout - timeout in milliseconds
      • release

        public void release()
        Description copied from interface: FileLocker
        Release the lock if acquired. Also removes the lock marker file.
        Specified by:
        release in interface FileLocker
      • isLocked

        public boolean isLocked()
        Description copied from interface: FileLocker
        Whether the file associated with this locker object is currently locked (by this process or any other process).
        Specified by:
        isLocked in interface FileLocker