public class LockInfo
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected Locker |
locker |
protected LockType |
lockType |
Constructor and Description |
---|
LockInfo(Locker locker,
LockType lockType)
Construct a new LockInfo.
|
LockInfo(LockInfo other)
Clone from given LockInfo.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
dump()
Debugging
|
static boolean |
getDeadlockStackTrace()
For unit testing only.
|
Locker |
getLocker() |
(package private) LockType |
getLockType() |
(package private) static void |
setDeadlockStackTrace(boolean enable)
Called when the je.txn.deadlockStackTrace property is changed.
|
(package private) void |
setLocker(Locker locker)
Change this lockInfo over to the prescribed locker.
|
(package private) void |
setLockType(LockType lockType) |
java.lang.String |
toString() |
public LockInfo(Locker locker, LockType lockType)
LockInfo(LockInfo other)
static void setDeadlockStackTrace(boolean enable)
public static boolean getDeadlockStackTrace()
void setLocker(Locker locker)
public Locker getLocker()
void setLockType(LockType lockType)
LockType getLockType()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void dump()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2012 Oracle. All rights reserved.