|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
This is the interface of global locks. Global locks are created and
associated w/ resource identifiers using the getGlobalLock
of the GlobalLockManager interface. Once created the lock
can be upgraded/downgraded to a specified level. The initial value is
implementation dependent.
GlobalLockManager| Method Summary | |
|---|---|
void |
downgrade(byte lck)
Notifies a lock downgrade. |
byte |
getGrantable()
Get the maximum lock level that can be granted immediately without contacting the global lock coordinator (and so without blocking). |
void |
uncache()
Uncache the lock level. |
GlobalLockWaiter |
upgrade(byte lck,
boolean sync,
long timeout)
Request a lock upgrade. |
| Method Detail |
public GlobalLockWaiter upgrade(byte lck,
boolean sync,
long timeout)
throws DeadLockException,
java.lang.InterruptedException
lck - the requested lock levelsync - if true the method blocks until the request is grantedtimeout - specifies the the maximum time to wait in sync mode
DeadLockException - if the timeout has expired
java.lang.InterruptedException - if the thread has been interrupted while waitingGlobalLockWaiterpublic void downgrade(byte lck)
lck - the new level wanted for the lockpublic byte getGrantable()
public void uncache()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||