|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Lockable
| Method Summary | |
|---|---|
void |
exclusiveLock()
Acquires an exclusive lock. |
boolean |
releaseExclusiveLock()
Releases an exclusive lock of the current thread. |
void |
releaseSharedLock()
Releases a shared lock of the current thread. |
void |
sharedLock()
Acquires a shared lock. |
boolean |
tryExclusiveLock()
Try to get an exclusive lock immediately. |
boolean |
trySharedLock()
Tries to get a shared lock immediately. |
| Method Detail |
|---|
void sharedLock()
void exclusiveLock()
boolean trySharedLock()
true if the lock has been allocated,
false otherwiseboolean tryExclusiveLock()
true if the lock has been allocated,
false otherwisevoid releaseSharedLock()
boolean releaseExclusiveLock()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||