org.apache.ojb.otm.lock
Class ObjectLock.LockEntry
java.lang.Object
org.apache.ojb.otm.lock.ObjectLock.LockEntry
- Enclosing class:
- ObjectLock
private class ObjectLock.LockEntry
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tx
public Transaction _tx
_listeners
public ArrayList _listeners
ObjectLock.LockEntry
public ObjectLock.LockEntry(Transaction tx)
getListeners
public ArrayList getListeners()
- Returns the LockListeners for this entry.
- Returns:
- ArrayList of LockListeners
getTx
public Transaction getTx()
- Returns the transaction held by this LockEntry.
- Returns:
- Transaction
addListener
public void addListener(LockListener listener)
- Add a listener to the list of LockListeners. LockListener is notified, when this
LockEntry is released.
- Parameters:
listener
- the LockListener
writeLock
public void writeLock()
throws LockingException
- Make this lock a writer. If a writer is already present, the call will block until
the lock is released by the writer.
- Throws:
LockingException
release
public void release()
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.