com.sleepycat.je.txn
Class LockInfo

java.lang.Object
  extended bycom.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.


Constructor Summary
(package private) LockInfo(Locker locker, LockType lockType)
          Construct a new LockInfo.
 
Method Summary
 Object clone()
           
 void dump()
          Debugging
(package private)  Locker getLocker()
           
(package private)  LockType getLockType()
           
(package private)  void setLocker(Locker locker)
          Change this lockInfo over to the prescribed locker.
(package private)  void setLockType(LockType lockType)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LockInfo

LockInfo(Locker locker,
         LockType lockType)
Construct a new LockInfo.

Method Detail

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)
Returns:
The LockType associated with this Lock.

getLockType

LockType getLockType()
Returns:
The LockType associated with this Lock.

clone

public Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException

dump

public void dump()
Debugging


toString

public String toString()


Copyright 2004 Sleepycat, Inc. All Rights Reserved.