Method Summary |
|
public boolean | acquire(AbstractRequest request) Acquires an exclusive lock on this table. |
public long | getLocker() Returns the transaction id of the lock owner. |
protected List | getWaitingList() Returns the list of requests waiting for this lock. |
public boolean | isLocked() Returns true if the lock is owned by someone. |
public synchronized boolean | isWaiting(long transactionId) Returns true if the given transaction id is contained in
this lock waiting queue. |
public synchronized boolean | release(long transactionId) Releases the lock on this table or remove the transaction from the waiting
list if it was not holding the lock. |