站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

DeadlockDetector (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.util.deadlock
Class DeadlockDetector

java.lang.Object
  extended byorg.jboss.util.deadlock.DeadlockDetector

public class DeadlockDetector
extends Object

Created by IntelliJ IDEA. User: wburke Date: Aug 21, 2003 Time: 2:10:46 PM To change this template use Options | File Templates.


Field Summary
static DeadlockDetector singleton
           
protected  HashMap waiting
           
 
Constructor Summary
DeadlockDetector()
           
 
Method Summary
 void addWaiting(Object holder, Resource resource)
          Add a transaction waiting for a lock
 void deadlockDetection(Object holder, Resource resource)
           
 void removeWaiting(Object holder)
          Remove a transaction waiting for a lock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

public static DeadlockDetector singleton

waiting

protected HashMap waiting
Constructor Detail

DeadlockDetector

public DeadlockDetector()
Method Detail

deadlockDetection

public void deadlockDetection(Object holder,
                              Resource resource)
                       throws ApplicationDeadlockException
Throws:
ApplicationDeadlockException

addWaiting

public void addWaiting(Object holder,
                       Resource resource)
Add a transaction waiting for a lock


removeWaiting

public void removeWaiting(Object holder)
Remove a transaction waiting for a lock



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.