deadlockexception.java

来自「分布式数据库原形代码 可以支持个用户同时登陆到数据库中查询需要的资源」· Java 代码 · 共 21 行

JAVA
21
字号
package lockmgr;/** *   Thrown to indicate that the transaction is deadlocked and should be aborted. */public class DeadlockException extends Exception{    private int xid = 0;        public DeadlockException (int xid, String msg)    {        super("The transaction " + xid + " is deadlocked:" + msg);        this.xid = xid;    }        int GetXId()    {        return xid;    }}

⌨️ 快捷键说明

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