Class Overview
Used to lock resources using a file system file as a lock
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Constants
public
static
final
long
LOOP_WAIT_TIME
Constant Value:
1000
(0x00000000000003e8)
Public Constructors
Public Methods
public
String
getLockFilePath
()
public
boolean
isLocked
()
public
boolean
obtain
(long timeout)
Try to obtain a lock, wait for timeout ms if necessary
Parameters
timeout
| number of milliseconds to wait for (if necessary) |
Returns
- try if the lock was successfully obtained, false otherwise