public class FileLockerImpl extends Object implements FileLocker
| Constructor and Description |
|---|
FileLockerImpl(File file,
org.eclipse.osgi.service.datalocation.Location anyLocation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocked()
Whether the file associated with this locker object is currently locked (by this process or
any other process).
|
void |
lock()
Equivalent to {
FileLocker.lock(long) with a timeout argument of 10000 milliseconds. |
void |
lock(long timeout)
Attempt to lock the file associated with this locker object.
|
void |
release()
Release the lock if acquired.
|
public FileLockerImpl(File file, org.eclipse.osgi.service.datalocation.Location anyLocation)
public void lock()
FileLockerFileLocker.lock(long) with a timeout argument of 10000 milliseconds.lock in interface FileLockerpublic void lock(long timeout)
FileLockerlock in interface FileLockertimeout - timeout in millisecondspublic void release()
FileLockerrelease in interface FileLockerpublic boolean isLocked()
FileLockerisLocked in interface FileLockerCopyright © 2008-2013 Eclipse Foundation. All Rights Reserved.