| java.lang.Object | |
| ↳ | com.ericsson.research.trap.utils.Lock |
Known Direct Subclasses
|
Port of the Java Lock class to allow 1.4 and earlier compatibility.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Lock using the most applicable implementation.
| |||||||||||
Attempts to lock the lock, blocking execution if someone else already owns it.
| |||||||||||
Attempts to lock, allowing InterruptedExceptions to occur.
| |||||||||||
Attempts to lock.
| |||||||||||
Attempts to lock, waiting up to waitTime msec.
| |||||||||||
Unlocks a currently owned lock.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new Lock using the most applicable implementation.
Attempts to lock the lock, blocking execution if someone else already owns it.
Attempts to lock, allowing InterruptedExceptions to occur.
| InterruptedException |
|---|
Attempts to lock. Does not block execution.
Attempts to lock, waiting up to waitTime msec.
| waitTime | The number of msec to wait max for a lock. |
|---|
| InterruptedException | If the thread was interrupted during the wait. |
|---|
Unlocks a currently owned lock.