org.apache.ojb.otm.lock.map
Class InMemoryLockMap
java.lang.Object
org.apache.ojb.otm.lock.map.InMemoryLockMap
- All Implemented Interfaces:
- LockMap
public class InMemoryLockMap
- extends Object
- implements LockMap
- Author:
- Raghu Rajah
_locks
private HashMap _locks
InMemoryLockMap
public InMemoryLockMap()
getLock
public ObjectLock getLock(Identity oid)
- Specified by:
getLock
in interface LockMap
- See Also:
LockMap.getLock(Identity)
gc
public void gc()
- Description copied from interface:
LockMap
- This is "garbage collection" - remove free locks from
the map. This method is called at the end of each transaction.
Maybe that would be better to call it by timer?
- Specified by:
gc
in interface LockMap
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.