|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Definition of a mode Lock. A possible specialisation is the Read/Write model.
Field Summary | |
static java.lang.String |
MODE_LOCK_FEATURE
ADL Identifier |
Fields inherited from interface org.objectweb.transaction.api.lock.ReleaseLockFeature |
RELEASE_LOCK_FEATURE |
Fields inherited from interface org.objectweb.transaction.api.Feature |
FEATURE |
Method Summary | |
void |
acquire(LockIdentifier id,
LockMode mode)
Acquire the Lock with a specific mode. |
boolean |
isAcquired(LockIdentifier id,
LockMode mode)
Check if the Lock is acquired. |
boolean |
tryAcquire(LockIdentifier id,
LockMode mode)
Try to acquire the Lock. |
Methods inherited from interface org.objectweb.transaction.api.lock.ReleaseLockFeature |
release |
Field Detail |
public static final java.lang.String MODE_LOCK_FEATURE
Method Detail |
public void acquire(LockIdentifier id, LockMode mode)
id
- - the lock requester.mode
- - the requested mode of lock.public boolean tryAcquire(LockIdentifier id, LockMode mode)
id
- - the lock requester.mode
- - the requested lock mode.
public boolean isAcquired(LockIdentifier id, LockMode mode)
id
- - the lock requester.mode
- - the requested lock mode.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |