potentialdeadlockexception.java

来自「非常接近C/S操作方式的Java Ajax框架-ZK 用ZK框架使你的B/S应」· Java 代码 · 共 67 行

JAVA
67
字号
/* PotentialDeadLockException.java{{IS_NOTE	Purpose:			Description:			History:		Fri Dec  5 10:53:52     2003, Created by tomyeh}}IS_NOTECopyright (C) 2003 Potix Corporation. All Rights Reserved.{{IS_RIGHT	This program is distributed under GPL Version 2.0 in the hope that	it will be useful, but WITHOUT ANY WARRANTY.}}IS_RIGHT*/package org.zkoss.lang;/** * Denote a potential dead lock might occur. * More precisely, it occurs if a transaction is waiting a lock too long. * * <p>How it happens:<br> * 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. * * <p>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 */public class PotentialDeadLockException extends OperationException {	public PotentialDeadLockException(String msg, Throwable cause) {		super(msg, cause);	}	public PotentialDeadLockException(String s) {		super(s);	}	public PotentialDeadLockException(Throwable cause) {		super(cause);	}	public PotentialDeadLockException() {	}	public PotentialDeadLockException(int code, Object[] fmtArgs, Throwable cause) {		super(code, fmtArgs, cause);	}	public PotentialDeadLockException(int code, Object fmtArg, Throwable cause) {		super(code, fmtArg, cause);	}	public PotentialDeadLockException(int code, Object[] fmtArgs) {		super(code, fmtArgs);	}	public PotentialDeadLockException(int code, Object fmtArg) {		super(code, fmtArg);	}	public PotentialDeadLockException(int code, Throwable cause) {		super(code, cause);	}	public PotentialDeadLockException(int code) {		super(code);	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?