|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A mutex component aims at synchronizing the execution of several components.
Field Summary | |
static String |
MUTEX_ITF_NAME
The default name of the Mutex interface. |
Method Summary | |
void |
lock()
Acquires the mutex. |
boolean |
timedLock(long msecs)
Tries to acquire the mutex. |
void |
unlock()
Releases the mutex. |
Field Detail |
public static final String MUTEX_ITF_NAME
Mutex
interface.
Method Detail |
public void lock() throws InterruptedException
InterruptedException
- the thread is interrupted.public boolean timedLock(long msecs) throws InterruptedException
msecs
- the number of milliseconds to wait for the lock.
true
if the lock is acquired, false
otherwise.
InterruptedException
- if the thread is interrupted.public void unlock()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |