com.sleepycat.je.txn
Class LockInfo
java.lang.Object
com.sleepycat.je.txn.LockInfo
- All Implemented Interfaces:
- Cloneable
public class LockInfo
- extends Object
- implements Cloneable
LockInfo is a class that embodies information about a lock instance. The
holding thread and the locktype are all contained in the object.
It's possible to modify this file to add detailed information to help
understand deadlock messages. Uncommenting the lines marked "Uncomment to
add trace info" will add stacktrace information to lock timeout messages
that will show where the lock was taken. Obtaining this information requires
modifying this file and recompiling JE with the "ant jar" command because
the exception field and saving the exception data take extra memory, and we
don't want to incur this cost in the normal case for this very commonly used
class. Note that the new je.jar file will be in /build/lib/je.jar.
LockInfo
LockInfo(Locker locker,
LockType lockType)
- Construct a new LockInfo.
setLocker
void setLocker(Locker locker)
- Change this lockInfo over to the prescribed locker.
getLocker
Locker getLocker()
- Returns:
- The transaction associated with this Lock.
setLockType
void setLockType(LockType lockType)
getLockType
LockType getLockType()
- Returns:
- The LockType associated with this Lock.
clone
public Object clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
dump
public void dump()
- Debugging
toString
public String toString()
- Overrides:
toString
in class Object
Copyright 2004-2005 Sleepycat, Inc. All Rights Reserved.