|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommitLockPolicy
A policy responsible for acquiring the lock of a set of CommitLocks.
| Method Summary | |
|---|---|
boolean |
tryAcquire(CommitLock lock,
CommitLockFilter filter,
Transaction lockOwner)
Tries to acquire the lock. |
boolean |
tryAcquireAll(Collection<CommitLock> locks,
CommitLockFilter filter,
Transaction lockOwner)
|
boolean |
tryAcquireAll(CommitLock[] locks,
CommitLockFilter filter,
Transaction lockOwner)
Tries to acquire all the locks that should be locked (so are allowed by the lock filter). |
| Method Detail |
|---|
boolean tryAcquire(CommitLock lock,
CommitLockFilter filter,
Transaction lockOwner)
lock - the CommitLock to acquire.filter - the filter that selects to objects to lock.lockOwner - the Transaction that wants to own the lock.
boolean tryAcquireAll(CommitLock[] locks,
CommitLockFilter filter,
Transaction lockOwner)
locks - the CommitLocks where some need to be acquired.filter - selects which CommitLocks need to be acquiredlockOwner - the Transaction that wants to acquire the locks.
boolean tryAcquireAll(Collection<CommitLock> locks,
CommitLockFilter filter,
Transaction lockOwner)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||