|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mutex
A mutex component aims at synchronizing the execution of several components.
Field Summary | |
---|---|
static String |
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 |
---|
static final String ITF_NAME
Mutex
interface.
Method Detail |
---|
void lock() throws InterruptedException
InterruptedException
- the thread is interrupted.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.void unlock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |