|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to sychronize with lock requests in asynchronous mode.
It is returned by the upgrade
method of the
GlobalLock
interface. This can be used to ensure FIFO handling
of requests when implementing multilevel lock management.
GlobalLock
Method Summary | |
---|---|
byte |
getLockLevel()
Get the requested lock level |
void |
signalHandled()
Signal that the lock granting has been handled by the waiter and that next waiters can have their requests granted if possible |
boolean |
waitLock(long timeout)
Wait until the lock is granted or refused. |
Method Detail |
public boolean waitLock(long timeout) throws java.lang.InterruptedException
timeout
- max time to wait
java.lang.InterruptedException
- if the thread has been interruptedpublic void signalHandled()
public byte getLockLevel()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |