IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.objectgrid
LockDeadlockException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.ibm.websphere.objectgrid.ObjectGridException
                    |
                    +--com.ibm.websphere.objectgrid.LockException
                          |
                          +--com.ibm.websphere.objectgrid.LockTimeoutException
                                |
                                +--com.ibm.websphere.objectgrid.LockDeadlockException


This exception is used by lock manager to indicate that it detected a deadlock. It prevents the deadlock by throwing this exception. Typically, this deadlock is a result of the following scenario: one transaction owns a weaker lock as a result of getting a map entry, and then, at commit time, the transaction attempts to promote weaker lock to a stronger lock in order to apply the changes to the data store. For example, two transactions try to promote from shared locks to exclusive locks but each transaction already owns a shared lock.




Constructor Summary
LockDeadlockException()
           Constructs a new LockDeadlockException with null as its detail message.
LockDeadlockException(java.lang.String)
           Constructs a new LockDeadlockException with message as its detail message.

Inherited Methods

Methods inherited from com.ibm.websphere.objectgrid.LockTimeoutException
getLockRequestQueueDetails, getMessage, setLockRequestQueueDetails
Methods inherited from com.ibm.websphere.objectgrid.ObjectGridException
getCause, initCause, printStackTrace, printStackTrace, printStackTrace
Methods inherited from java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, setStackTrace, toString
Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

LockDeadlockException

public LockDeadlockException( )
Constructs a new LockDeadlockException with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to java.lang.Throwable#initCause.


LockDeadlockException

public LockDeadlockException( String message)
Constructs a new LockDeadlockException with message as its detail message. The cause is not initialized, and may subsequently be initialized by a call to java.lang.Throwable#initCause.
Parameters:
message - the detail message. The detail message is saved for later retrieval by the #getMessage()method.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0