Package org.zkoss.lang
Class PotentialDeadLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.zkoss.lang.SystemException
org.zkoss.lang.OperationException
org.zkoss.lang.PotentialDeadLockException
- All Implemented Interfaces:
Serializable,Expectable,Messageable,MessageConst
Denote a potential dead lock might occur.
More precisely, it occurs if a transaction is waiting a lock too long.
How it happens:
Transaction A writes bean X and transaction B writes bean Y, and then
A tries to read or write bean Y and B tries to read or write bean X.
This exception shall be rare, because CmpManager sorted beans to be updated in a special order. However, it still might happen, because a transaction might trigger multiple syncBeans.
- Author:
- tomyeh
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.lang.SystemException
SystemException.AideNested classes/interfaces inherited from interface org.zkoss.mesg.MessageConst
MessageConst.BundleInfo -
Field Summary
Fields inherited from class org.zkoss.lang.SystemException
_codeFields inherited from interface org.zkoss.mesg.MessageConst
NULL_CODE -
Constructor Summary
ConstructorsConstructorDescriptionPotentialDeadLockException(int code) PotentialDeadLockException(int code, Object fmtArg) PotentialDeadLockException(int code, Object[] fmtArgs) PotentialDeadLockException(int code, Object[] fmtArgs, Throwable cause) PotentialDeadLockException(int code, Object fmtArg, Throwable cause) PotentialDeadLockException(int code, Throwable cause) PotentialDeadLockException(String msg, Throwable cause) -
Method Summary
Methods inherited from class org.zkoss.lang.SystemException
getCodeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
public PotentialDeadLockException() -
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
-
PotentialDeadLockException
public PotentialDeadLockException(int code)
-